-
Notifications
You must be signed in to change notification settings - Fork 623
/
interceptors.kt
36 lines (33 loc) · 1.51 KB
/
interceptors.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package io.kotest.engine
import io.kotest.common.KotestInternal
import io.kotest.engine.interceptors.DumpConfigInterceptor
import io.kotest.engine.interceptors.EmptyTestSuiteInterceptor
import io.kotest.engine.interceptors.EngineInterceptor
import io.kotest.engine.interceptors.MarkAbortedExceptionsAsSkippedTestInterceptor
import io.kotest.engine.interceptors.ProjectExtensionEngineInterceptor
import io.kotest.engine.interceptors.ProjectListenerEngineInterceptor
import io.kotest.engine.interceptors.ProjectTimeoutEngineInterceptor
import io.kotest.engine.interceptors.SpecSortEngineInterceptor
import io.kotest.engine.interceptors.TestDslStateInterceptor
import io.kotest.engine.interceptors.TestEngineInitializedInterceptor
import io.kotest.engine.interceptors.TestEngineStartedFinishedInterceptor
import io.kotest.engine.interceptors.WriteFailuresInterceptor
import io.kotest.engine.spec.interceptor.SpecInterceptor
@KotestInternal
actual fun testEngineInterceptors(): List<EngineInterceptor> {
return listOfNotNull(
TestEngineStartedFinishedInterceptor,
TestDslStateInterceptor,
SpecSortEngineInterceptor,
ProjectExtensionEngineInterceptor,
ProjectListenerEngineInterceptor,
ProjectTimeoutEngineInterceptor,
EmptyTestSuiteInterceptor,
WriteFailuresInterceptor,
DumpConfigInterceptor,
TestEngineInitializedInterceptor,
)
}
@KotestInternal
internal actual fun specInterceptorsForPlatform(): List<SpecInterceptor> =
listOf(MarkAbortedExceptionsAsSkippedTestInterceptor)