#rustc #test #testing #language #fork

dev 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
Download history 518/week @ 2021-02-16 286/week @ 2021-02-23 188/week @ 2021-03-02 187/week @ 2021-03-09 200/week @ 2021-03-16 289/week @ 2021-03-23 291/week @ 2021-03-30 388/week @ 2021-04-06 332/week @ 2021-04-13 339/week @ 2021-04-20 384/week @ 2021-04-27 278/week @ 2021-05-04 257/week @ 2021-05-11 167/week @ 2021-05-18 170/week @ 2021-05-25 166/week @ 2021-06-01

1,261 downloads per month
Used in less than 12 crates

MIT/Apache

85KB
2K SLoC


lib.rs:

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

~1MB
~16K SLoC