TestEvent.testStart constructor

TestEvent.testStart(
  1. Test test, {
  2. required int time,
})

An event emitted when a test begins running.

This is the only event that contains the full metadata about a test; future events will refer to the test by its opaque ID.

If the test is skipped, its TestDoneEvent will have skipped set to true. The test.metadata should not be used for determining whether a test is skipped.

Implementation

factory TestEvent.testStart(Test test, {required int time}) =
    TestEventTestStart;