TestReporter¶
Receives structured test-result events from PonyTest.
Implement this interface on an actor to receive programmatic
test results. Pass the actor to PonyTest.create as the
reporter parameter.
Three events arrive during a test run:
test_startedwhen a test begins executing.test_completewhen a test finishes, carrying the full result. Results arrive in completion order.testing_completeafter all tests finish, carrying every result in registration order.
Public Behaviours¶
test_started¶
Called when a test begins executing.
Parameters¶
- name: String val
test_complete¶
Called when a test finishes. Results arrive in completion order.
Parameters¶
- result: TestResult val
testing_complete¶
Called after all tests finish. The array is in registration order.
Parameters¶
- results: Array[TestResult val] val