Expand description
This module contains a reimplementation of the subset of libtest functionality needed by compiletest.
ModulesΒ§
- deadline π
- json π
- Collects statistics and emits suite/test events as JSON messages, using the same JSON format as libtestβs JSON formatter.
StructsΒ§
- Collected
Test π - Information needed to create a
test::TestDescAndFn
. - Collected
Test πDesc - Information needed to create a
test::TestDesc
. - Runnable
Test π - Running
Test π - Test
Completion π - Test completion message sent by individual test threads when their test finishes (successfully or unsuccessfully).
- TestId π
EnumsΒ§
- Color
Config - Whether console output should be colored or not.
- Output
Format - Format of the test results output.
- Should
Panic π - Whether test is expected to panic or not.
- Test
Outcome π
FunctionsΒ§
- __
rust_ πbegin_ short_ backtrace - Fixed frame used to clean the backtrace with
RUST_BACKTRACE=1
. - filter_
tests π - Applies command-line arguments for filtering/skipping tests by name.
- get_
concurrency π - Determines the number of tests to run concurrently.
- run_
test_ πinner - Runs a single test, within the dedicated thread spawned by the caller.
- run_
tests π - spawn_
test_ πthread - Spawns a thread to run a single test, and returns the threadβs join handle.