Easy Desktop Test
The crate streamlines the use of rstest with support for tracing (using test-log). async tests are supported using the tokio framework.
The crate re-exports the assertions from static-assertions, and the #[serial] attribute of serial_test for pure convenience.
Usage
Unfortunately, due to the nature of macros, besides this crate the user still needs a few dev-dependencies:
cargo.toml:
[]
= ...
= ...
= ...
# Only needed if using the #[serial] attribute to make tests not run concurrently
= ...
tests:
use test;
use *;
/// Normal synchronous test.
/// Note that `cargo test` still tries to run these concurrently!
/// Async tests using `tokio` are fully supported - they can even
/// be run using `serial` (non-concurrent)
async
Noteworthy crates
General
Messing with files
Network
CLI programs
assert_cmdSimplify integration testing of CLIsrexpectRunning/testing interactive CLIs
Tools
- coverage LLVM Coverage reports the easy way