Table of Verifications, Assertions, and Other Qualifications
There are four types of qualifications for testing values and responding to failures: verifications, assumptions, assertions, and fatal assertions.
Verifications — Produce and record failures without throwing an exception, meaning the remaining tests run to completion.
假设 - 仅当满足某些先决条件并且事件不应产生测试故障时,确保测试才能运行。当发生假设失败时,测试框架将测试标记为过滤。
Assertions — Ensure that the preconditions of the current test are met.
Fatal assertions — Use this qualification when the failure at the assertion point renders the remainder of the current test method invalid or the state is unrecoverable.
See Also
Assertable
|Assumable
|FatalAssertable
|matlab.unittest.qualifications
|Verifiable