MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

failure in testB, the testing framework proceeds and executes testC, which contains a
verification failure.


ts = matlab.unittest.TestSuite.fromClass(?ExampleTest);
res = ts.run;


Running ExampleTest
.


ExampleTest/testB was filtered.
Details


.


Verification failed in ExampleTest/testC.




Framework Diagnostic:


verifyFalse failed.
--> The value must evaluate to "false".


Actual logical:
1




Stack Information:


In C:\work\ExampleTest.m (ExampleTest.testC) at 11


.
Done ExampleTest




Failure Summary:


Name Failed Incomplete Reason(s)


ExampleTest/testB X Filtered by assumption.


ExampleTest/testC X Failed by verification.


If you examine the TestResult, you notice that there is a passed test, a failed test, and a
test that did not complete due to an assumption failure.


Dynamically Filtered Tests
Free download pdf