13 releases (7 breaking)

0.9.0 May 11, 2024
0.8.0 Mar 16, 2024
0.7.0 Mar 16, 2024
0.5.0 Oct 29, 2023
0.1.5 Jul 15, 2022

#2483 in Development tools

Download history 375/week @ 2024-03-11 228/week @ 2024-03-18 150/week @ 2024-03-25 229/week @ 2024-04-01 253/week @ 2024-04-08 117/week @ 2024-04-15 143/week @ 2024-04-22 107/week @ 2024-04-29 337/week @ 2024-05-06 151/week @ 2024-05-13 139/week @ 2024-05-20 232/week @ 2024-05-27 165/week @ 2024-06-03 148/week @ 2024-06-10 112/week @ 2024-06-17 294/week @ 2024-06-24

731 downloads per month
Used in 84 crates

MIT license

120KB
2K SLoC

Module :: test_tools

experimental rust-status docs.rs Open in Gitpod discord

Tools for writing and running tests.

Basic use-case

use test_tools::*;

#[ cfg( feature = "enabled" ) ]
#[ cfg( not( feature = "no_std" ) ) ]
tests_impls!
{
  fn pass1()
  {
    assert_eq!( true, true );
  }

  //

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

//
#[ cfg( feature = "enabled" ) ]
#[ cfg( not( feature = "no_std" ) ) ]
tests_index!
{
  pass1,
  pass2,
}

To add to your project

cargo add test_tools --dev

Try out from the repository

git clone https://github.com/Wandalen/wTools
cd wTools
cd examples/test_trivial
cargo run

Sample

discord Open in Gitpod docs.rs

Dependencies

~3–13MB
~128K SLoC