UnitTestResult

This type is returned by the module unit test handler to indicate testing results.

Members

Functions

opCast
bool opCast()

Simple check for whether execution should continue after unit tests have been run. Works with legacy code that expected a bool return.

Variables

executed
size_t executed;

Number of modules which were tested

fail
enum UnitTestResult fail;

Simple return code that says unit tests failed.

pass
enum UnitTestResult pass;

Simple return code that says unit tests pass, and main should be run

passed
size_t passed;

Number of modules passed the unittests

runMain
bool runMain;

Should the main function be run or not? This is ignored if any tests failed.

summarize
bool summarize;

Should we print a summary of the results?

Meta