ConfigurableTest
Provides a way to configure the timeLimit
and failureLimit
for
automated tests (test(...)
or testV(...)
), which return a
ConfigurableTest
.
Should typically be called with named parameters, as in
test(...)(timeLimit = 1000)
test(...)(failureLimit = 5)
test(...)(timeLimit = 1000, failureLimit = 1)
Also works with testV
, as in
testV(...){
... // validation code
}(timeLimit = 1000)
Note that, if you are satisfied with the default time limit and failure limit you can simply say
test(...)
rather than
test(...)()
For compatibility, ignoretest
/ignoretestV
also return a
ConfigurableTest
, so that you can safely change back and forth
between (for example)
test(...)(failureLimit = 5)
and
ignoretest(...)(failureLimit = 5)
However, as would be expected, ignoretest
/ignoretestV
do not actually
use the timeLimit
or failureLimit
.
The default time limit is 500ms and the default failure limit is 2.
Value members
Concrete methods
Configures the timeLimit
and failureLimit
for this test to the
given values.
Configures the timeLimit
and failureLimit
for this test to the
given values.
Returns the number of failed test cases in this test for which the full details will be displayed.
Returns the number of failed test cases in this test for which the full details will be displayed.
Failed test cases beyond this limit will display as X
s.