#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

#456 in Testing

Download history 94/week @ 2024-09-11 105/week @ 2024-09-18 114/week @ 2024-09-25 89/week @ 2024-10-02 94/week @ 2024-10-09 72/week @ 2024-10-16 105/week @ 2024-10-23 108/week @ 2024-10-30 103/week @ 2024-11-06 87/week @ 2024-11-13 91/week @ 2024-11-20 128/week @ 2024-11-27 151/week @ 2024-12-04 138/week @ 2024-12-11 73/week @ 2024-12-18 19/week @ 2024-12-25

393 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

~3MB
~44K SLoC