runUnitTests

Runs all unit tests contained in the given symbol recursively.

composite can be a package, a module or a composite type.

bool
runUnitTests
(
alias composite
)

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(new ConsoleResultWriter);
	else runApplication;
}

Meta