nelson.unittest.assume
Skip a test when a runtime assumption is not satisfied.
📝Syntax
nelson.unittest.assume(condition)
nelson.unittest.assume(condition, reason)
📥Input Arguments
Parameter Description
condition logical scalar that must be true to continue the current test.
reason optional text explaining why the test is skipped.
📄Description

nelson.unittest.assume marks the current test as skipped when a runtime prerequisite is false.

💡Examples
nelson.unittest.assume(ispc(), 'Requires Windows');
🔗See Also
nelson.unittest.skipskip_testsuite
Edit this page on GitHub