#testing #general-purpose

no-std dev test_tools

Tools for writing and running tests

23 releases (breaking)

0.19.1 Jun 30, 2026
0.17.0 Jun 9, 2026
0.16.0 Jun 21, 2025
0.11.0 Oct 30, 2024
0.1.5 Jul 15, 2022

#2524 in Algorithms

Download history 211/week @ 2026-04-16 125/week @ 2026-04-23 155/week @ 2026-04-30 211/week @ 2026-05-07 805/week @ 2026-05-14 428/week @ 2026-05-21 569/week @ 2026-05-28 291/week @ 2026-06-04 516/week @ 2026-06-11 463/week @ 2026-06-18 324/week @ 2026-06-25 385/week @ 2026-07-02 105/week @ 2026-07-09 320/week @ 2026-07-16 354/week @ 2026-07-23 211/week @ 2026-07-30

1,032 downloads per month
Used in 86 crates

MIT license

175KB
3K SLoC

Module :: test_tools

stable 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

~1.7–4.5MB
~92K SLoC