unit_threaded.runner

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

Members

Functions

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.

runTests
int runTests(from!"unit_threaded.options".Options options, from!"unit_threaded.reflection".TestData[] testData)
Undocumented in source. Be warned that the author may not have intended to support it.
runTests
int runTests(string[] args, from!"unit_threaded.reflection".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.

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 a shared library is used instead of an executable.

Meta