#test-framework #fork #unstable #rustc #language #require

rustc-test

A fork of Rust’s test crate that doesn’t require unstable language features

8 releases

Uses old Rust 2015

0.3.1 Nov 30, 2020
0.3.0 Feb 1, 2018
0.2.0 Jul 1, 2017
0.1.5 Jul 1, 2017
0.1.3 Feb 25, 2016

#373 in Testing

Download history 129/week @ 2024-03-13 228/week @ 2024-03-20 164/week @ 2024-03-27 131/week @ 2024-04-03 77/week @ 2024-04-10 93/week @ 2024-04-17 95/week @ 2024-04-24 75/week @ 2024-05-01 95/week @ 2024-05-08 86/week @ 2024-05-15 92/week @ 2024-05-22 112/week @ 2024-05-29 91/week @ 2024-06-05 85/week @ 2024-06-12 94/week @ 2024-06-19 57/week @ 2024-06-26

339 downloads per month
Used in fewer than 11 crates

MIT/Apache

85KB
2K SLoC

Support code for rustc's built in unit-test and micro-benchmarking framework.

Almost all user code will only be interested in Bencher and black_box. All other interactions (such as writing tests and benchmarks themselves) should be done via the #[test] and #[bench] attributes.

See the Testing Chapter of the book for more details.

Dependencies

~1.3–1.8MB
~25K SLoC