unit_threaded.runner

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

Members

Functions

runTests
int runTests(string[] args, in 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.

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
mixin template 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