15 releases (9 breaking)

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

#2490 in Development tools

Download history 215/week @ 2024-09-18 186/week @ 2024-09-25 167/week @ 2024-10-02 79/week @ 2024-10-09 112/week @ 2024-10-16 145/week @ 2024-10-23 268/week @ 2024-10-30 59/week @ 2024-11-06 33/week @ 2024-11-13 75/week @ 2024-11-20 123/week @ 2024-11-27 179/week @ 2024-12-04 138/week @ 2024-12-11 57/week @ 2024-12-18 23/week @ 2024-12-25 22/week @ 2025-01-01

293 downloads per month
Used in 71 crates

MIT license

185KB
2.5K 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

~6–14MB
~178K SLoC