public class ActiveKt
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isActive(TestCase test)
Returns true if the given
class TestCase is active. |
public static boolean isActive(TestCase test)
Returns true if the given class TestCase is active.
A test can be active or inactive.
A test is inactive if
The enabled property is set to false in the class TestCaseConfig associated with the test.
The name of the test is prefixed with "!" and System.getProperty("kotlintest.bang.disable") has a null value (ie, not defined)
Exclude tag filters have been specified and this test has a class Tag which is one of those excluded
Include tag filters have been specified and this test either has no tags, or does not have a tag that is one of those included
The test is filtered out via a interface TestCaseFilter
Note: tags are defined either through class TestCaseConfig or in the interface Spec itself.
Note2: Focused tests will override any settings here.