runTests

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.

  1. template runTests(Modules...)
  2. int runTests(string[] args, from!"unit_threaded.runner.reflection".TestData[] testData)
    int
    runTests
    (
    string[] args
    ,
    in from!"unit_threaded.runner.reflection".TestData[] testData
    )
  3. int runTests(from!"unit_threaded.runner.options".Options options, from!"unit_threaded.runner.reflection".TestData[] testData)

Parameters

args string[]

Arguments passed to main.

testData from!"unit_threaded.runner.reflection".TestData[]

Data about the tests to run.

Return Value

Type: int

An integer suitable for the program's return code.

Meta