TestRunObserver
interfacein packageklyn.unittest
public interface TestRunObserver:
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.

Example
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)
Methods
Modifier and Type Member Description
public testClassCompleted
testClassCompleted(result as TestClassResult) as Void
Reports a fully completed test class.
public testClassStarted
testClassStarted(source as String) as Void
Reports that a test source is about to run.