#test-harness #harness #test-framework #framework #libtest #command-line-arguments

dev libtest-mimic

Write your own test harness that looks and behaves like the built-in test harness used by rustc --test

13 unstable releases

0.7.2 Apr 9, 2024
0.7.0 Jan 14, 2024
0.6.1 Jun 20, 2023
0.6.0 Nov 5, 2022
0.1.0 Jul 23, 2018

#23 in Testing

Download history 70353/week @ 2024-01-14 72891/week @ 2024-01-21 69843/week @ 2024-01-28 53881/week @ 2024-02-04 41716/week @ 2024-02-11 49404/week @ 2024-02-18 56989/week @ 2024-02-25 51024/week @ 2024-03-03 54601/week @ 2024-03-10 55260/week @ 2024-03-17 56990/week @ 2024-03-24 49277/week @ 2024-03-31 53169/week @ 2024-04-07 56168/week @ 2024-04-14 59247/week @ 2024-04-21 46321/week @ 2024-04-28

218,424 downloads per month
Used in 83 crates (38 directly)

MIT/Apache

43KB
721 lines

libtest-mimic

CI status of master Crates.io Version docs.rs

Write your own test harness that looks and behaves like the built-in test harness (used by rustc --test)!

This is a simple and small testing framework that mimics the original libtest. That means: all output looks pretty much like cargo test and most CLI arguments are understood and used. With that plumbing work out of the way, your test runner can focus on the actual testing.

See the documentation or the examples/ folder for more information.


License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.4–9.5MB
~79K SLoC