public class SkipTestException
Exception to mark a test as ignored while it is already running
The SkipTestException may be thrown inside a test case to skip it (mark it as ignored). Any subclass of this class may be used, in case you want to use your specific exception.
class FooTest : StringSpec({
"Ignore this test!" {
throw SkipTestException("I want to ignore this test!")
}
})
| Constructor and Description |
|---|
SkipTestException(java.lang.String reason)
Exception to mark a test as ignored while it is already running
|
SkipTestException()
Exception to mark a test as ignored while it is already running
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getReason() |
public SkipTestException(java.lang.String reason)
Exception to mark a test as ignored while it is already running
The SkipTestException may be thrown inside a test case to skip it (mark it as ignored). Any subclass of this class may be used, in case you want to use your specific exception.
class FooTest : StringSpec({
"Ignore this test!" {
throw SkipTestException("I want to ignore this test!")
}
})
public SkipTestException()
Exception to mark a test as ignored while it is already running
The SkipTestException may be thrown inside a test case to skip it (mark it as ignored). Any subclass of this class may be used, in case you want to use your specific exception.
class FooTest : StringSpec({
"Ignore this test!" {
throw SkipTestException("I want to ignore this test!")
}
})