2 unstable releases

✓ Uses Rust 2018 edition

0.2.0 Jan 11, 2019
0.1.0 Dec 30, 2018

#143 in Testing

Download history 249/week @ 2019-06-30 293/week @ 2019-07-07 550/week @ 2019-07-14 449/week @ 2019-07-21 464/week @ 2019-07-28 302/week @ 2019-08-04 498/week @ 2019-08-11 470/week @ 2019-08-18 258/week @ 2019-08-25 385/week @ 2019-09-01 648/week @ 2019-09-08 656/week @ 2019-09-15 689/week @ 2019-09-22 363/week @ 2019-09-29 475/week @ 2019-10-06

213 downloads per month
Used in 7 crates

MIT license

4KB

serial_test_derive

Version Docs MIT license

serial_test_derive allows for the creation of serialised Rust tests using the serial attribute e.g.

#[test]
#[serial]
fn test_serial_one() {
  // Do things
}

#[test]
#[serial]
fn test_serial_another() {
  // Do things
}

Multiple tests with the serial attribute are guaranteed to be executed in serial. Ordering of the tests is not guaranteed however.

Usage

We require at least Rust 1.30 for attribute-like procedural macros support.

Add to your Cargo.toml

[dev-dependencies]
serial_test = "0.1"
serial_test_derive = "0.1"

plus use serial_test_derive::serial; (for Rust 2018) or

#![macro_use]
extern crate serial_test_derive;

for earlier versions.

You can then either add #[serial] or #[serial(some_text)] to tests as required.

Dependencies

~9KB