runUnitTests

Runs all unit tests contained in the given symbol recursively.

COMPOSITES can be a list of modules or composite types.

bool
runUnitTests
(
COMPOSITES...
)

Examples

This example assumes that the application has all of its sources in the package named "mypackage". All contained tests will be run recursively.

import tested;
import mypackage.application;

void main()
{
	version(unittest) runUnitTests!(mypackage.application)(new ConsoleResultWriter);
	else runApplication;
}

Meta