Package-level declarations
Types
Link copied to clipboard
The result of a test execution. Can be TestFailure or TestSuccess.
Link copied to clipboard
data class TestFailure<T>(val testCase: TestCase<T>, val cause: Throwable, val duration: Duration) : TestExecutionResult<T>
Represents a failed test execution with the cause of failure.
Link copied to clipboard
data class TestSuccess<T>(val testCase: TestCase<T>, val duration: Duration) : TestExecutionResult<T>
Represents a successful test execution.
Properties
Functions
Link copied to clipboard
Executes the provided block after the test. It is the only way to execute something after test on JS/WasmJS targets.
Link copied to clipboard
Executes a test function with retry capabilities.
Link copied to clipboard
fun <T> runTestWithData( testCases: Iterable<T>, context: CoroutineContext = EmptyCoroutineContext, timeout: Duration = 1.minutes, retries: Int = 1, afterEach: (TestExecutionResult<T>) -> Unit = {}, handleFailures: (List<TestFailure<T>>) -> Unit = ::defaultAggregatedError, afterAll: () -> Unit = {}, test: suspend TestScope.(TestCase<T>) -> Unit): TestResult
Executes multiple test cases with retry capabilities and timeout control. Timeout is independent for each attempt in each test case.