toggle menu
ktor
3.0.3
3.0.3
3.0.2
3.0.0
2.3.12
2.2.4
2.0.3
1.6.8
common
jsAndWasmShared
jvm
posix
switch theme
search in API
ktor-server-test-base
/
io.ktor.server.test.base
/
BaseTest
Base
Test
common
jsAndWasmShared
jvm
posix
expect
abstract
class
BaseTest
Inheritors
EngineTestBase
actual
abstract
class
BaseTest
Inheritors
EngineTestBase
@
CoroutinesTimeout
(
testTimeoutMs
=
300000
)
actual
abstract
class
BaseTest
Inheritors
EngineTestBase
actual
abstract
class
BaseTest
Inheritors
EngineTestBase
Members
Members & Extensions
Constructors
Base
Test
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
constructor
(
)
actual
constructor
(
)
actual
constructor
(
)
actual
constructor
(
)
Properties
test
Method
Link copied to clipboard
jvm
var
testMethod
:
Optional
<
Method
>
test
Name
Link copied to clipboard
jvm
var
testName
:
String
timeout
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
open
val
timeout
:
Duration
actual
open
val
timeout
:
Duration
actual
open
val
timeout
:
Duration
actual
open
val
timeout
:
Duration
Functions
after
Test
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
open
fun
afterTest
(
)
actual
open
fun
afterTest
(
)
actual
open
fun
afterTest
(
)
actual
open
fun
afterTest
(
)
before
Test
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
open
fun
beforeTest
(
)
actual
open
fun
beforeTest
(
)
actual
open
fun
beforeTest
(
)
actual
open
fun
beforeTest
(
)
collect
Unhandled
Exception
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
fun
collectUnhandledException
(
error
:
Throwable
)
actual
fun
collectUnhandledException
(
error
:
Throwable
)
actual
fun
collectUnhandledException
(
error
:
Throwable
)
actual
fun
collectUnhandledException
(
error
:
Throwable
)
run
Test
Link copied to clipboard
common
jsAndWasmShared
jvm
posix
expect
fun
runTest
(
timeout
:
Duration
=
60.seconds
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
TestResult
actual
fun
runTest
(
timeout
:
Duration
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
TestResult
actual
fun
runTest
(
timeout
:
Duration
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
TestResult
actual
fun
runTest
(
timeout
:
Duration
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
TestResult
run
Test
Link copied to clipboard
fun
BaseTest
.
runTest
(
retry
:
Int
,
timeout
:
Duration
=
this.timeout
,
block
:
suspend
CoroutineScope
.
(
)
->
Unit
)
:
TestResult
set
Up
Link copied to clipboard
jvm
@
BeforeEach
fun
setUp
(
testInfo
:
TestInfo
)