2 releases

0.2.2 Apr 23, 2020
0.2.1 Apr 23, 2020
Download history 108/week @ 2021-08-08 74/week @ 2021-08-15 130/week @ 2021-08-22 157/week @ 2021-08-29 57/week @ 2021-09-05 62/week @ 2021-09-12 68/week @ 2021-09-19 141/week @ 2021-09-26 434/week @ 2021-10-03 196/week @ 2021-10-10 166/week @ 2021-10-17 177/week @ 2021-10-24 160/week @ 2021-10-31 393/week @ 2021-11-07 237/week @ 2021-11-14 68/week @ 2021-11-21

466 downloads per month
Used in festive

MIT/Apache

4KB
106 lines

Festive

docs crates.io License: MIT OR Apache-2.0 CI Minimum rustc version

Festive is a celebration of the rusty_fork crate. I have stripped down, modernized and proc_macroifyied our well loved rusty_fork crate as a learning experiment. What has come out on the other side is an extremely simple alternative where you may run your tests in an isolated process via the #[festive] attribute. No need to add the #[test] attr and if you would like a timeout just do something like the following: #[festive(timeout_ms = 100)].

Quality

If you want a crate that is battle hardened over the years, use rusty_fork. If you want something that has lots more tests use rusty_fork. If you want something that isnt a toy project use rusty_fork. If you want.... well you get the picture.

Todo:

  • Add failing test file for #should_panic

Example

use festive::festive;
use std::process;

#[festive]
fn forked() {
    println!("Forked: My pid={}", process::id());
}

Rust Version Requirements

1.42+

License

Licensed under either of the following at your option.

Credit

Most of this is lifted from rusty_fork, please direct any credit there.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~295–710KB
~18K SLoC

6^