Skip to content

TestReporter

[Source]

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_started when a test begins executing.
  • test_complete when a test finishes, carrying the full result. Results arrive in completion order.
  • testing_complete after all tests finish, carrying every result in registration order.
interface tag TestReporter

Public Behaviours

test_started

[Source]

Called when a test begins executing.

be test_started(
  name: String val)

Parameters


test_complete

[Source]

Called when a test finishes. Results arrive in completion order.

be test_complete(
  result: TestResult val)

Parameters


testing_complete

[Source]

Called after all tests finish. The array is in registration order.

be testing_complete(
  results: Array[TestResult val] val)

Parameters