|On this page…|
Assumption failures produce filtered tests. In the matlab.unittest.TestResult class, such a test is marked Incomplete.
Since filtering test content through the use of assumptions does not produce test failures, it has the possibility of creating dead test code. Avoiding this requires monitoring of filtered tests.
If an assumption failure is encountered inside of a TestCase method with the Test attribute, the entire method is marked as filtered, but MATLAB® runs the subsequent Test methods.
If an assumption failure is encountered inside a TestCase method with the TestMethodSetup or TestMethodTeardown attribute, MATLAB filters the method which was to be run for that instance.