Base interface for test rule, which is initialized or disposed before or after execution of each test in the scope (package for top-level value or class for attribute).

Usage: Declare attribute or top-level value satisfies the interface and mark it with testRule() annotation.

By: Lis
Since 0.6.0

no type hierarchy

no supertypes hierarchy

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
aftershared formal void after(AsyncPrePostContext context)

Test callback which is called after each test function within the scope (package for top-level value or class for attribute) is executed.

Parameters:
  • context

    Prepost context to report on test aborts or ask to procceed with the test as normal.

beforeshared formal void before(AsyncPrePostContext context)

Test callback which is called before each test function within the scope (package for top-level value or class for attribute) is executed.

Parameters:
  • context

    Prepost context to report on test aborts or ask to procceed with the test as normal.

Inherited Methods
Methods inherited from: Object
equals