17 releases (11 breaking)

new 0.13.0 Apr 13, 2025
0.11.0 Oct 30, 2024
0.9.0 May 11, 2024
0.8.0 Mar 16, 2024
0.1.5 Jul 15, 2022

#2445 in Algorithms

Download history 43/week @ 2024-12-22 13/week @ 2024-12-29 26/week @ 2025-01-05 30/week @ 2025-01-12 44/week @ 2025-01-19 20/week @ 2025-01-26 31/week @ 2025-02-02 73/week @ 2025-02-09 68/week @ 2025-02-16 28/week @ 2025-02-23 30/week @ 2025-03-02 36/week @ 2025-03-09 43/week @ 2025-03-16 17/week @ 2025-03-23 71/week @ 2025-03-30 84/week @ 2025-04-06

220 downloads per month
Used in 94 crates

MIT license

48KB
913 lines

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

~1.5–9.5MB
~89K SLoC