Crate sweet

Crate sweet 

Source
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 for scoped_tls.

Functions§

test_runner
Entry point for the sweet test runner

Attribute Macros§

test
A unified macro for handling all test cases: