Skip to content

Commit

Permalink
feat: minimal demo of how to reduce the amount of tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekleog-NEAR committed Nov 10, 2023
1 parent 0c6f78f commit 8f4e49d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/cargo-bolero/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ impl List {
let output = self
.cmd("test", &[], None)?
.arg("--no-fail-fast")
.arg("_fuzzer")
.arg("--")
.arg("--nocapture")
.env("CARGO_BOLERO_SELECT", "all")
Expand Down
2 changes: 2 additions & 0 deletions lib/bolero/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ macro_rules! check {
test_name: None,
};

assert!(location.item_path.contains("_fuzzer"), "Bolero fuzzers must all end with `_fuzzer` since 0.11");

if !location.should_run() {
return;
}
Expand Down

0 comments on commit 8f4e49d

Please sign in to comment.