Package-level declarations
Types
This class allows a test block to be run on the UI thread inside a custom context that is also created in the UI Thread using a configuration.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the JS target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on the Kotlin/Wasm target.
Marks a test or test class to be skipped on both web targets (Kotlin/JS and Kotlin/Wasm) — a shortcut for applying both IgnoreJs and IgnoreWasm.
Marks a test or test class to be skipped on both web targets (Kotlin/JS and Kotlin/Wasm) — a shortcut for applying both IgnoreJs and IgnoreWasm.
Marks a test or test class to be skipped on both web targets (Kotlin/JS and Kotlin/Wasm) — a shortcut for applying both IgnoreJs and IgnoreWasm.
Marks a test or test class to be skipped on both web targets (Kotlin/JS and Kotlin/Wasm) — a shortcut for applying both IgnoreJs and IgnoreWasm.
This class allows a test block to be run on the UI thread inside a custom context that is also created in the UI Thread.
Functions
Runs block as a test and then cancels any coroutines it left running in the runner's scope, so a test that deliberately launches a never-completing child (e.g. an infinite collector) does not hang.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Runs block as the body of a test and returns a TestResult that the Kotlin test framework awaits: it blocks until completion on JVM/Native, and returns the backing Promise on js/wasmJs (which is single-threaded and cannot block). Returning the result from a @Test function is what lets suspending tests actually run on the JS family, rather than firing-and-forgetting as a bare com.splendo.kaluga.base.runBlocking would.
Calls yield for a number of times
Calls yield until a constraint is met. After yielding a number of times there is a delay to prevent maxing out the CPU.