#test-framework #test-runner #test-harness #framework #harness #cargo-test

libtest-with

A slightly customized version of libtest-mimic, such that it can be easier create a test runner for test-with

12 releases

new 0.8.1-1 Nov 16, 2024
0.7.0 Jan 19, 2024
0.7.0-3 Sep 20, 2024
0.6.1-6 Dec 21, 2023
0.6.1-5 Nov 28, 2023

#267 in Testing

Download history 39/week @ 2024-07-29 77/week @ 2024-08-05 22/week @ 2024-08-12 24/week @ 2024-08-19 84/week @ 2024-08-26 78/week @ 2024-09-02 64/week @ 2024-09-09 147/week @ 2024-09-16 83/week @ 2024-09-23 43/week @ 2024-09-30 236/week @ 2024-10-07 57/week @ 2024-10-14 125/week @ 2024-10-21 54/week @ 2024-10-28 105/week @ 2024-11-04 153/week @ 2024-11-11

449 downloads per month
Used in test-with

MIT/Apache

48KB
786 lines

libtest-with

CI status of master Crates.io Version docs.rs

In order to provide a test runner for test-with, this crate base on LukasKalbertodt/libtest-mimic and add with runtime ignore feature.

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–34MB
~537K SLoC