unit_threaded.runner

This module implements functions to run the unittests with command-line options.

Members

Functions

runTests
int runTests(string[] args, TestData[] testData)

Runs all tests in passed-in testData. Arguments are taken from the command-line. -s Can be passed to run in single-threaded mode. The rest of argv is considered to be test names to be run.

runTests
int runTests(string[] args)

Runs all tests in passed-in modules. Modules can be symbols or strings. Arguments are taken from the command-line. -s Can be passed to run in single-threaded mode. The rest of argv is considered to be test names to be run.

Mixin templates

runTestsMixin
mixintemplate runTestsMixin(Modules...)

Runs all tests in passed-in modules. Modules can be symbols or strings. Generates a main function and substitutes the default D runtime unittest runner. This mixin should be used instead of runTests if Phobos is linked as a shared library.

Meta