unit_threaded.attrs

Members

Enums

AutoTags
enum AutoTags

Automatically assign @Tags for each parameterized test e.g.

Functions

Values
auto Values(T[] values...)

Used as a UDA for built-in unittests to enable value-parametrized tests.

getValue
T getValue()

Retrieves the current test value of type T in a built-in unittest. See Values.

Structs

Flaky
struct Flaky
HiddenTest
struct HiddenTest

Hide test. Not run by default but can be run.

Name
struct Name

Associate a name with a unittest block.

ShouldFail
struct ShouldFail

The suite fails if the test passes.

ShouldFailWith
struct ShouldFailWith(T : Throwable)

The suite fails unless the test throws T

Tags
struct Tags

Associates one or more tags with the test

Types
struct Types(T...)

Attachs these types to the a parametrized unit test. The attached template function will be instantiated with each type listed, e.g.

Meta