unit_threaded

Modules

asserts
module unit_threaded.asserts
attrs
module unit_threaded.attrs
factory
module unit_threaded.factory
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.

mock
module unit_threaded.mock
options
module unit_threaded.options
randomized
module unit_threaded.randomized
reflection
module unit_threaded.reflection
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.

testcase
module unit_threaded.testcase
tests
module unit_threaded.tests
testsuite
module unit_threaded.testsuite

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

uda
module unit_threaded.uda

Meta