EngineTestBuilder

Configure the test

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The number of coroutines to launch. Each coroutine will invoke test

Link copied to clipboard
var engineConfig: <Error class: unknown class>.() -> Unit

Lambda function invoked to configure the HttpClientEngineConfig to use for the test. If not specified HttpClientEngineConfig.Default is used

Link copied to clipboard
var repeat: Int

Number of times to repeat test

Link copied to clipboard
var test: suspend (env: TestEnvironment, <Error class: unknown class>) -> Unit

Lambda function that is invoked with the current test environment and an SdkHttpClient configured with an engine loaded by AbstractEngineTest. Invoke calls against test routes and make assertions here. This will potentially be invoked multiple times (once for each engine supported by a platform).

Inherited functions

Link copied to clipboard
fun EngineTestBuilder.engineConfig(block: <Error class: unknown class>.() -> Unit)
Link copied to clipboard
fun EngineTestBuilder.test(block: suspend (env: TestEnvironment, <Error class: unknown class>) -> Unit)