Expand description
§Sweet
A cross platform extension of the default test runner.
§Usage
#![cfg_attr(test, feature(test, custom_test_frameworks))]
#![cfg_attr(test, test_runner(sweet::test_runner))]
use sweet::prelude::*;
#[test]
fn it_passes(){
assert!(1 + 1 == 2);
"sweet".xnot().xpect_contains("verbose matchers");
}
cargo test
Re-exports§
pub use sweet_macros;
Modules§
- as_
sweet - backtrace
- bevy
- exports
- libtest
- Utilities for libtest
- logging
- Cross platform logging utils
- prelude
- test_
case - test_
runner - Test runner module
- utils
Macros§
- scoped_
thread_ local no_std
polyfill forscoped_tls
.
Functions§
- test_
runner - Entry point for the sweet test runner
Attribute Macros§
- test
- A unified macro for handling all test cases: