Expand description

Tools for writing and running tests.

module::wtest_basic rust-status stable

Tools for writing and running tests. The most basic things.

Sample

use wtest_basic::*;

//

fn pass1_test()
{
  assert_eq!( true, true );
}

//

fn pass2_test()
{
  assert_eq!( 1, 1 );
}

//

test_suite!
{
  pass1,
  pass2,
}

To add to your project

cargo add wtest_basic --dev

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd sample/rust/test_basic_trivial
cargo run

Re-exports

pub use ::paste;

Modules

Dependencies.

Macros

Mechanism to define test suite. This macro encourages refactoring the code of the test in the most readable way, gathering a list of all test routines at the end of the test file.