TestEvaluationFunction

TestEvaluationFunction

is an option to TestReport that specifies which function to use when evaluating tests.

Details

Examples

open allclose all

Basic Examples  (1)

By default, TestReport evaluates tests using TestEvaluate:

Use Identity as TestEvaluationFunction to skip all tests in the TestReport:

Applications  (3)

Print all tests in the notebook without evaluating them:

Print all tests in the notebook before evaluation and evaluate them:

Use Throw and Catch to stop the test suite when a test fails:

Store in MetaInformation a "Skip" property that defines if a test needs to run:

Wolfram Research (2023), TestEvaluationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/TestEvaluationFunction.html.

Text

Wolfram Research (2023), TestEvaluationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/TestEvaluationFunction.html.

CMS

Wolfram Language. 2023. "TestEvaluationFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TestEvaluationFunction.html.

APA

Wolfram Language. (2023). TestEvaluationFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TestEvaluationFunction.html

BibTeX

@misc{reference.wolfram_2024_testevaluationfunction, author="Wolfram Research", title="{TestEvaluationFunction}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/TestEvaluationFunction.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_testevaluationfunction, organization={Wolfram Research}, title={TestEvaluationFunction}, year={2023}, url={https://reference.wolfram.com/language/ref/TestEvaluationFunction.html}, note=[Accessed: 21-December-2024 ]}