User`s guide
R2015a
1-8
the WSDL import element. For more information, see “Limitations to WSDL Document
Support”.
Unit Testing Framework: Tag tests for categorization and selection
You can use tags to group tests into categories, and then run tests with specified tags.
Tag your tests using the class-level or method-level TestTags attribute on TestCase.
Select tagged test elements using the HasTag selector or the 'Tag' name-value pair
on one of the following TestSuite methods: fromClass, fromFile, fromFolder,
fromMethod, fromPackage, or selectIf. You also can select and run tagged tests
using the 'Tag' name-value pair with the runtests function. For more information, see
Tag Unit Tests.
Unit Testing Framework: Run tests in parallel
You can run a suite of tests in parallel using the Parallel Computing Toolbox™. For more
information, see the runInParallel method of the TestRunner class.
Unit Testing Framework: Share variables between tests in scripts
You can include a shared variables section in your script-based test file. In this section
you can define variables to share between tests in the script and define any critical
preconditions necessary for your tests. For more information, see “Write Script-Based
Unit Tests”.
Unit Testing Framework: Use prebuilt test fixtures
You can manually configure your test environment, and the test runner does not need
to perform shared fixture setup and teardown activities. To define prebuilt fixtures, use
the PrebuiltFixtures property on the TestRunner instance in combination with the
SharedTestFixtures attribute of the TestCase class. In certain testing scenarios,
prebuilding fixtures can result in significant time or resource savings. An example where
prebuilt test fixtures might be a benefit is a test that meets these three conditions:
• Has shared fixtures that are expensive to set up
• Has a required fixture state that can be set up manually in the MATLAB session
• Does not require a fresh test fixture for each test run
For more information, see matlab.unittest.TestRunner.