unit_threaded

Advanced testing library for D. Please consult the documentation in the different modules.

Modules

asserts
module unit_threaded.asserts

Custom assertions for testing unit-threaded itself, not intended for the end-user.

attrs
module unit_threaded.attrs

UDAs for decorating tests.

dub
module unit_threaded.dub

Code to parse the output from dub describe and generate the main test file automatically.

factory
module unit_threaded.factory

Creates test cases from compile-time information.

from
module unit_threaded.from

Eliminate top-level imports.

integration
module unit_threaded.integration

This module implements functionality helpful for writing integration tests as opposed to the unit variety where unit-tests are defined as not having global side-effects. In constrast, this module implements assertions that check for global side-effects such as writing to the file system.

io
module unit_threaded.io

IO related functions

light
module unit_threaded.light

This module is an attempt to alleviate compile times by including the bare minimum. The idea is that while the reporting usually done by unit-threaded is welcome, it only really matters when tests fail. Otherwise, no news is good news.

meta
module unit_threaded.meta

Meta-programming helper functions.

mock
module unit_threaded.mock

Support the automatic implementation of test doubles via programmable mocks.

options
module unit_threaded.options

Run-time options.

property
module unit_threaded.property

Property-based testing.

randomized
module unit_threaded.randomized
Undocumented in source.
reflection
module unit_threaded.reflection

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

runner
module unit_threaded.runner

This module implements functions to run the unittests with command-line options.

runtime
module unit_threaded.runtime

This module implements a template mixin containing a program to search a list of directories for all .d files therein, then writes a D program to run all unit tests in those files using unit_threaded. The program implemented by this mixin only writes out a D file that itself must be compiled and run.

should
module unit_threaded.should

This module implements custom assertions via shouldXXX functions that throw exceptions containing information about why the assertion failed.

static_
module unit_threaded.static_

A module for static constructors to avoid cyclic dependencies.

testcase
module unit_threaded.testcase

The different TestCase classes

tests
module unit_threaded.tests

Modules with tests for testing unit-threaded itself.

testsuite
module unit_threaded.testsuite

This module implements TestSuite, an aggregator for TestCase objects to run all tests.

uda
module unit_threaded.uda

Helper functions for dealing with UDAs, written before hasUDA and others were added to Phobos.

ut
module unit_threaded.ut

Public Imports

unit_threaded.light
public import unit_threaded.light;
Undocumented in source.
unit_threaded.attrs
public import unit_threaded.attrs;
Undocumented in source.
unit_threaded.should
public import unit_threaded.should;
Undocumented in source.
unit_threaded.testcase
public import unit_threaded.testcase;
Undocumented in source.
unit_threaded.io
public import unit_threaded.io;
Undocumented in source.
unit_threaded.reflection
public import unit_threaded.reflection;
Undocumented in source.
unit_threaded.runner
public import unit_threaded.runner;
Undocumented in source.
unit_threaded.integration
public import unit_threaded.integration;
Undocumented in source.
unit_threaded.property
public import unit_threaded.property;
Undocumented in source.
unit_threaded.mock
public import unit_threaded.mock;
Undocumented in source.
unit_threaded.attrs
public import unit_threaded.attrs;
Undocumented in source.

Meta