testtube.util.SkipTest

SkipTest is a convenience wrapper around testtube.errors.SkipTestError. This can be useful in situations where the testing environment does not allow for a test to execute successfully. In cases like this, you can check for some condition in the module that implements the test and set module.exports appropriately based on whether or not that condition was satisfied.

Class

class testtube.util.SkipTest()

extends: testtube.Test

Properties

name
string
Default “SkipTest”
Description The test name.
description
string
Default “Skip test”
Description The test description. This will be used to set testtube.errors.SkipTestError.message.

Methods

This method overrides testtube.Test.doTest to throw a SkipTest, using description for the error message.

Example