Scoop API

scoop:scoop.test:0.1.0

src/markers.scoop

Selected production source · src/markers.scoop

1package scoop.test
3/**
4 * Marks a test function or a class containing test cases for test-purpose compilation.
5 * With useProcess, each selected case runs in a fresh process, including setup and cleanup.
6 * A class-level setting applies to every case in that class.
7 */
8@Target([AnnotationTarget.Class, AnnotationTarget.Function])
9public annotation class Test(val useProcess: Boolean = false)
11/**
12 * Marks the setup action run before a test body. A setup failure skips the body but still
13 * permits the after-test action.
14 */
15@Target([AnnotationTarget.Function])
16public annotation class BeforeTest
18/**
19 * Marks cleanup run after setup and body processing, including when either fails. Cleanup
20 * failures are retained separately from the primary failure.
21 */
22@Target([AnnotationTarget.Function])
23public annotation class AfterTest
25/**
26 * Marks a test case as ignored by default and records the reason shown by test reporting.
27 */
28@Target([AnnotationTarget.Function])
29public annotation class Ignore(val reason: String)