#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

14 releases

0.7.3 May 10, 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

#19 in Testing

Download history 56364/week @ 2024-03-25 50093/week @ 2024-04-01 52269/week @ 2024-04-08 56483/week @ 2024-04-15 60306/week @ 2024-04-22 47585/week @ 2024-04-29 51511/week @ 2024-05-06 61168/week @ 2024-05-13 55940/week @ 2024-05-20 56253/week @ 2024-05-27 58647/week @ 2024-06-03 63902/week @ 2024-06-10 64917/week @ 2024-06-17 69311/week @ 2024-06-24 56048/week @ 2024-07-01 62958/week @ 2024-07-08

257,861 downloads per month
Used in 89 crates (45 directly)

MIT/Apache

43KB
724 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
~80K SLoC