Crate rustest

Source

Structs§

FixtureCreationError
Represents an error that occurs during the creation of a fixture.
FixtureMatrix
A matrix of fixtures.
Test
An actual test run by rustest
TestContext
The context of a specific test.

Enums§

FixtureScope
Represents the scope of a fixture.

Traits§

Fixture
A trait representing a fixture that can be set up and torn down.
FixtureDisplay
A trait to display fixtures when we have multiple combination for a test.

Functions§

run_tests
Build tests from test_ctors and run them.

Type Aliases§

Result
Result of a test.
TestCtorFn
Function creating a set of Test from a TestContext.

Attribute Macros§

fixture
Define a fixture that you can use in all rustest’s test and fixture arguments.
main
Replace a empty main function into a test harness.
test
test attribute is applied to a test function.