Run Tests

Run tests.

Syntax

kwave.tests.runTests()
kwave.tests.runTests(testType=type)

Description

runTests uses the MATLAB class-based unit testing framework to set up a suite of tests, and then run these using a test runner. The test type is specified by the optional testType input, which determines which folder is used to search for the tests, and where the test artifacts are saved. If no input is given for testType, all test types defined by the TestType class are run.

If the 'CI' environment variable is set to any value, a cobertura coverage XML file is saved. If this is not set a HTML code coverage page is generated that can be viewed in a web browser.

Input Arguments

  • testType - (kwave.tests.TestType) Test type.

See Also

  • TestType