Visitor

Declared In:

Introduction

Base class for visitors.

Discussion

This script defines the interface for a Visitor object. Subclasses are supposed to override some handlers. To operate on a suite, you call the suite accept() with a visitor. ASUnit defines only one visitor, TestResult, which runs all the tests in a suite. You may create other visitors to do filtered testing, custom reporting and like. Your custom visitor should inherit from one of the framework visitors or from Visitor.



Member Functions

visitTestCase
visitTestSuite

visitTestCase


on visitTestCase(
    TestCase)

See


visitTestSuite


on visitTestSuite(
    aTestSuite)

See