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. int runTests(string[] args)
  2. int runTests(string[] args, in from!"unit_threaded.reflection".TestData[] testData)
    int
    runTests
    (
    string[] args
    ,
    in from!"unit_threaded.reflection".TestData[] testData
    )

Parameters

args
Type: string[]

Arguments passed to main.

testData
Type: from!"unit_threaded.reflection".TestData[]

Data about the tests to run.

Return Value

Type: int

An integer suitable for the program's return code.

Meta