Expand description
§Usage
#![cfg_attr(test, feature(test, custom_test_frameworks))]
#![cfg_attr(test, test_runner(sweet::test_runner))]
#[test]
fn it_passes() -> Result<()>{
assert!(1 + 1 == 2);
expect("sweet").not().to_contain("verbose matchers")
}
cargo run --example sweetRe-exports§
pub use sweet_test_macros;
Modules§
- backtrace
- libtest
- Utilities for libtest
- logging
- Cross platform logging utils
- matchers
- Matchers used for assertions:
expect(true).to_be_true() - prelude
- test_
case - test_
runner - Test runner module
- test_
suite - Test suite module
- utils
Macros§
- scoped_
thread_ local no_stdpolyfill forscoped_tls.
Functions§
Attribute Macros§
- test
- A unified macro for handling all test cases: