13 个版本 (7 个重大更新)

0.9.0 2024 年 5 月 11 日
0.8.0 2024 年 3 月 16 日
0.7.0 2024 年 3 月 16 日
0.5.0 2023 年 10 月 29 日
0.1.5 2022 年 7 月 15 日

开发工具 中排名第 2564

Download history · Rust 包仓库 117/week @ 2024-04-15 · Rust 包仓库 143/week @ 2024-04-22 · Rust 包仓库 107/week @ 2024-04-29 · Rust 包仓库 337/week @ 2024-05-06 · Rust 包仓库 151/week @ 2024-05-13 · Rust 包仓库 139/week @ 2024-05-20 · Rust 包仓库 232/week @ 2024-05-27 · Rust 包仓库 165/week @ 2024-06-03 · Rust 包仓库 148/week @ 2024-06-10 · Rust 包仓库 112/week @ 2024-06-17 · Rust 包仓库 294/week @ 2024-06-24 · Rust 包仓库 100/week @ 2024-07-08 · Rust 包仓库 262/week @ 2024-07-15 · Rust 包仓库 128/week @ 2024-07-22 · Rust 包仓库 136/week @ 2024-07-29 · Rust 包仓库

每月下载量 626
87 个crate 中使用

MIT 许可证

120KB
2K SLoC

模块 :: test_tools

experimental rust-status docs.rs Open in Gitpod discord

编写和运行测试的工具。

基本用法

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,
}

添加到您的项目中

cargo add test_tools --dev

从仓库中尝试

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

示例

discord Open in Gitpod docs.rs

依赖项

~3–12MB
~125K SLoC