public interface TestRunObserver:
Receives incremental notifications from a TestRunner.
Observers are called by the thread executing the runner. A graphical observer must enqueue completed results and publish them from its GUI thread rather than modifying widgets directly.
import klyn.unittest
class ProgressObserver implements TestRunObserver:
public testClassStarted(source as String) as Void:
print("Starting " + source)
public testClassCompleted(result as TestClassResult) as Void:
print(result.qualifiedName)| Modifier and Type | Member | Description |
|---|---|---|
| public | testClassCompletedtestClassCompleted(result as TestClassResult) as Void |
Reports a fully completed test class. |
| public | testClassStartedtestClassStarted(source as String) as Void |
Reports that a test source is about to run. |