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)]
.
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.
- Add failing test file for #should_panic
use festive::festive;
use std::process;
#[festive]
fn forked() {
println!("Forked: My pid={}", process::id());
}
1.42+
Licensed under either of the following at your option.
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Most of this is lifted from rusty_fork
, please direct any credit there.
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.