trial.discovery.spec

A module containing the discovery logic for spec tests

Members

Aliases

SetupFunction
alias SetupFunction = void delegate() @(system)
Undocumented in source.

Classes

SpecTestDiscovery
class SpecTestDiscovery

The default test discovery looks for unit test sections and groups them by module

Functions

after
void after(T setup)

Define a function that will be ran after all the tests were ran

afterEach
void afterEach(T setup)

Define a function that will be ran after each test

before
void before(T setup)

Define a function that will be ran before all the tests

beforeEach
void beforeEach(T setup)

Define a function that will be ran before each test

describe
void describe(string name, T description)

Define a Spec test suite

it
void it(string name, T test, string file, size_t line)

Define a Spec

it
void it(string name, string file, size_t line)

Define a pending Spec

parseString
string parseString(string someString)

Templates

Spec
template Spec(alias definition)

The main spec container

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Szabo Bogdan