#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

#299 in Testing

Download history 70/week @ 2024-01-06 58/week @ 2024-01-13 43/week @ 2024-01-20 23/week @ 2024-01-27 26/week @ 2024-02-03 47/week @ 2024-02-10 77/week @ 2024-02-17 90/week @ 2024-02-24 120/week @ 2024-03-02 149/week @ 2024-03-09 233/week @ 2024-03-16 112/week @ 2024-03-23 201/week @ 2024-03-30 71/week @ 2024-04-06 95/week @ 2024-04-13 84/week @ 2024-04-20

480 downloads per month
Used in fewer than 12 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–1.5MB
~25K SLoC