Skip to content

Commit

Permalink
Test proc_macro tree
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Sep 30, 2024
1 parent ce01987 commit 6a11ad9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,20 @@ fn cdylib_tree_is_well_tested() {
}));
}

#[test]
fn proc_macro_tree_is_well_tested() {
let tmp_src_dir = copy_of_testdata("proc_macro");
run()
.arg("mutants")
.args(["--no-times", "--no-shuffle", "-v", "-V"])
.current_dir(tmp_src_dir.path())
.assert()
.success()
.stdout(predicate::str::contains(
"2 mutants tested: 1 caught, 1 unviable",
));
}

#[test]
fn well_tested_tree_finds_no_problems() {
let tmp_src_dir = copy_of_testdata("well_tested");
Expand Down

0 comments on commit 6a11ad9

Please sign in to comment.