Skip to content

Commit

Permalink
run crashes before corpus when running cargo test
Browse files Browse the repository at this point in the history
This makes cargo test likely to crash faster than the other way around,
which in turn leads to faster iteration rate

This is a small improvement compared to camshaft#114, but always worth it even
if camshaft#114 were to land
  • Loading branch information
Ekleog committed Jan 22, 2023
1 parent b1a67cc commit d0758db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bolero/src/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ impl TestEngine {

fn tests(&self) -> Vec<NamedTest> {
empty()
.chain(self.file_tests(["corpus"].iter().cloned()))
.chain(self.file_tests(["crashes"].iter().cloned()))
.chain(self.file_tests(["afl_state", "crashes"].iter().cloned()))
.chain(self.file_tests(["afl_state", "hangs"].iter().cloned()))
.chain(self.file_tests(["corpus"].iter().cloned()))
.chain(self.file_tests(["afl_state", "queue"].iter().cloned()))
.chain(self.file_tests(["afl_state", "crashes"].iter().cloned()))
.chain(self.rng_tests())
.collect()
}
Expand Down

0 comments on commit d0758db

Please sign in to comment.