Expand description
A crate to run the Rust compiler (or other binaries) and test their command line output.
Re-exports§
pub use core::run_and_collect;
pub use core::CrateType;
pub use filter::Match;
pub use test_result::Errored;
pub use test_result::TestOk;
pub use color_eyre;
pub use spanned;
Modules§
- Basic operations useful for building a testsuite
- Datastructures and operations used for normalizing test output.
- An interface to github actions workflow commands.
- Helper functions for nextest emulation.
- This module allows you to configure the default settings for all tests. All data structures here are normally parsed from
@
comments in the files. These comments still overwrite the defaults, although some boolean settings have no way to disable them. - Variaous schemes for reporting messages during testing or after testing is done.
- Various data structures used for carrying information about test success or failure
Structs§
- Plain arguments if
ui_test
is used as a binary. - A command, its args and its environment. Used for the main command, the dependency builder and the cfg-reader.
- Central datastructure containing all information to run the tests.
Enums§
- All the ways in which a test can fail.
- Possible choices for styling the output.
- Decides what is expected of each test’s exit status.
- The different options for what to do when stdout/stderr files differ from the actual output.
- When to run rustfix on tests
Functions§
- Run on all files that are specified by
Config::filter_files
andConfig::skip_files
. - The filter used by
run_tests
to only run on.rs
files that are specified byConfig::filter_files
andConfig::skip_files
. ReturnsNone
if there is no extension or the extension is not.rs
. - The default per-file config used by
run_tests
. - Run all tests as described in the config argument. Will additionally process command line arguments.
- A version of
run_tests
that allows more fine-grained control over running tests. - Create a command for running a single file, with the settings from the
config
argument. Ignores various settings fromConfig
that relate to finding test files.
Type Aliases§
- type alias for
Result<T, Report>