Arbitrary properties that can be set on the test context
OptionalcurrentCurrent test
Gets or sets the number of allowed retries on failed tests. When called without arguments, returns the current retry count. When called with a number, sets the retry count and returns the context for method chaining.
OptionalserverProvides access to the test server instance, if available. This allows tests to interact with the server during execution, such as making HTTP requests to it or checking its status. The server property may be undefined if the test runner does not support a test server, so tests should check for its existence before attempting to use it.
Gets or sets the threshold for considering a test as slow. When called without arguments, returns the current slow threshold. When called with a millisecond value, sets the threshold and returns the context for method chaining.
Gets or sets the current test timeout. When called without arguments, returns the current timeout value. When called with a millisecond value, sets the timeout and resets the timer if the test is already running, then returns the context for method chaining.
OptionaltypeCurrent listener event type, when applicable
Test runner context
Since
0.2.0