unit_threaded.runner.reflection

Compile-time reflection to find unit tests and set their properties.

Members

Aliases

TestFunction
alias TestFunction = void delegate()

Functions

allTestData
const(TestData)[] allTestData()

Finds all test cases. Template parameters are module strings.

allTestData
const(TestData)[] allTestData()

Finds all test cases. Template parameters are module symbols.

moduleUnitTests
TestData[] moduleUnitTests()

Finds all built-in unittest blocks in the given modules. Recurses into structs, classes, and unions of the modules.

tagsFromAttrs
string[] tagsFromAttrs()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

TestData
struct TestData

Attributes of each test.

Templates

TestNameFromAttr
template TestNameFromAttr(alias testFunction)

Names a test function / built-in unittest based on @Name or string UDAs on it. If none are found, "returns" an empty string

Meta