unit_threaded

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

Modules

assertions
module unit_threaded.assertions

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

asserts
module unit_threaded.asserts

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

attrs
module unit_threaded.attrs
Undocumented in source.
exception
module unit_threaded.exception

Exception classes

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
Undocumented in source.
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

Support the automatic implementation of test doubles via programmable mocks.

property
module unit_threaded.property

Property-based testing.

randomized
module unit_threaded.randomized
Undocumented in source.
reflection
module unit_threaded.reflection
Undocumented in source.
runner
module unit_threaded.runner
Undocumented in source.
runtime
module unit_threaded.runtime
should
module unit_threaded.should

Here for backwards compatibility

static_
module unit_threaded.static_

A module for static constructors to avoid cyclic dependencies.

testcase
module unit_threaded.testcase
Undocumented in source.
tests
module unit_threaded.tests

Modules with tests for testing unit-threaded itself.

ut
module unit_threaded.ut

Public Imports

unit_threaded.light
public import unit_threaded.light;
Undocumented in source.
unit_threaded.runner.attrs
public import unit_threaded.runner.attrs;
Undocumented in source.
unit_threaded.should
public import unit_threaded.should;
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.runner.attrs
public import unit_threaded.runner.attrs;
Undocumented in source.
unit_threaded.runner.testcase
public import unit_threaded.runner.testcase;
Undocumented in source.
unit_threaded.runner.io
public import unit_threaded.runner.io;
Undocumented in source.
unit_threaded.runner.reflection
public import unit_threaded.runner.reflection;
Undocumented in source.
unit_threaded.runner.runner
public import unit_threaded.runner.runner;
Undocumented in source.

Meta