Hook class Null safety

A hook that is run during certain points in the execution cycle You can override any or none of the methods





hashCode int
The hash code for this object. [...]
read-only, inherited
priority int
The priority to assign to this hook. Higher priority gets run first so a priority of 10 is run before a priority of 2
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
onAfterRun(TestConfiguration config) Future<void>
Run after all scenarios in a test run have completed
onAfterScenario(TestConfiguration config, String scenario, Iterable<Tag> tags) Future<void>
Run after a scenario has executed
onAfterScenarioWorldCreated(World world, String scenario, Iterable<Tag> tags) Future<void>
Run after the scenario world is created but run before a scenario and its steps are executed Might not be invoked if there is not a world object
onAfterStep(World world, String step, StepResult stepResult) Future<void>
Run after a step has executed
onBeforeRun(TestConfiguration config) Future<void>
Run before any scenario in a test run have executed
onBeforeScenario(TestConfiguration config, String scenario, Iterable<Tag> tags) Future<void>
Run before a scenario and it steps are executed
onBeforeStep(World world, String step) Future<void>
Run before a step is executed
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]