onFailure
Class: matlab.unittest.fixtures.Fixture
Namespace: matlab.unittest.fixtures
Dynamically add diagnostics for failures during fixture setup and teardown
Description
onFailure(
adds diagnostics for failures during fixture setup and teardown routines. If the
test framework encounters a failure, then it executes the diagnostics. By default,
these diagnostics execute upon verification failures, assertion failures, fatal
assertion failures, and uncaught exceptions. fixture
,failureDiag
)
onFailure(
indicates if the test framework also executes diagnostics upon assumption failures.
To execute diagnostics upon assumption failures also, set fixture
,failureDiag
,'IncludingAssumptionFailures',tf)tf
to
true
.