#rustc #test #testing #language #fork

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

#300 in Testing

Download history 257/week @ 2022-06-14 216/week @ 2022-06-21 200/week @ 2022-06-28 188/week @ 2022-07-05 186/week @ 2022-07-12 223/week @ 2022-07-19 233/week @ 2022-07-26 213/week @ 2022-08-02 257/week @ 2022-08-09 222/week @ 2022-08-16 197/week @ 2022-08-23 215/week @ 2022-08-30 464/week @ 2022-09-06 298/week @ 2022-09-13 224/week @ 2022-09-20 208/week @ 2022-09-27

1,243 downloads per month
Used in fewer than 13 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
~19K SLoC