Skipping Tests and Suites
Tests and suites can be skipped from execution by using the skip
annotation in the component or function declaration or our skip()
methods. The reporters will show that these suites or tests where skipped from execution.
Skip Annotation
The skip
annotation can have the following values:
nothing
- If you just add the annotation, we will detect it and skip the testtrue
- Skips the testfalse
- Does not skip the test{udf_name}
- It will look for a UDF with that name, execute it and the value must evalute to boolean.
Skip Methods
You can also skip manually by using the skip()
method in the Assertion
library and also in any bundle which is inherited by the BaseSpec
class.
$assert.skip( message="", detail="" )
You can use the $assert.skip( message, detail )
method to skip any spec or suite a-la-carte instead of as an argument to the function definitions. This lets you programmatically skip certain specs and suites and pass a nice message.
skip( message="", detail="" )
The BaseSpec
has this method available to you as well.