Expand description
This module contains a reimplementation of the subset of libtest functionality needed by compiletest.
FIXME(Zalathar): Much of this code was originally designed to mimic libtest as closely as possible, for ease of migration. Now that libtest is no longer used, we can potentially redesign things to be a better fit for 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 that was historically needed to create a libtest
TestDescAndFn
. - Collected
Test πDesc - Information that was historically needed to create a libtest
TestDesc
. - Runnable
Test π - Running
Test π - Test
Completion π - Test completion message sent by individual test threads when their test finishes (successfully or unsuccessfully).
- TestId π
EnumsΒ§
- Capture
Kind π - Color
Config - Whether console output should be colored or not.
- 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.