v1.8.10
  • Solutions
    • Multiplatform
    • Server-side
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin.test / kotlin.test / BeforeTest

BeforeTest

Common
JS
Native
1.0
@Target([AnnotationTarget.FUNCTION]) annotation class BeforeTest
(Common source) (JS source) (Native source)
JUnit
1.0
typealias BeforeTest = Before
(source)
JUnit5
1.0
typealias BeforeTest = BeforeEach
(source)
TestNG
1.0
typealias BeforeTest = BeforeMethod
(source)

Marks a function to be invoked before each test.

Constructors

Common
JS
Native
1.0

<init>

Marks a function to be invoked before each test.

<init>()
Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains