scoop:scoop.test:0.1.0
src/markers.scoop
Selected production source · src/markers.scoop
1
package scoop.test3
/**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])9
public 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 still13
* permits the after-test action.14
*/15
@Target([AnnotationTarget.Function])16
public annotation class BeforeTest18
/**19
* Marks cleanup run after setup and body processing, including when either fails. Cleanup20
* failures are retained separately from the primary failure.21
*/22
@Target([AnnotationTarget.Function])23
public annotation class AfterTest25
/**26
* Marks a test case as ignored by default and records the reason shown by test reporting.27
*/28
@Target([AnnotationTarget.Function])29
public annotation class Ignore(val reason: String)