ConfigurableTest

class ConfigurableTest(name: String)

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.

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(timeLimit: Int, failureLimit: Int): Unit

Configures the timeLimit and failureLimit for this test to the given values.

Configures the timeLimit and failureLimit for this test to the given values.

def failureLimit: Int

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 Xs.

def timeLimit: Int

Returns the length of time (in milliseconds) an individual test case * in this test is allowed to run before timing out.

Returns the length of time (in milliseconds) an individual test case * in this test is allowed to run before timing out.

Concrete fields

lazy val suite: SingleTest