blt / bughunt-rust

QuickCheck bug hunting in Rust standard library data structures
MIT License
160 stars 8 forks source link

Running cargo test executes 0 test #11

Open ReinierMaas opened 6 years ago

ReinierMaas commented 6 years ago

I thought to run the cargo test command but no test are actually executed. latest stable: rustc 1.30.0 & cargo 1.30

blt commented 6 years ago

I'll document how to run the fuzz targets and ping you on the PR. I wish it were as straightforward as cargo test.

ReinierMaas commented 6 years ago

Your readme made it seem that easy!

I would love to help improve the safety guarantees of Rust.

blt commented 6 years ago

That's my fault, yeah. I neglected to update the README. A while back I transitioned away from QuickCheck to experiment with a model driven fuzzer, approach outlined here: https://blog.troutwine.us/2018/10/08/hunting-for-bugs-in-rust/ I never updated the README. Will correct.

ReinierMaas commented 6 years ago

What I would actually like to test is time QUICKCHECK_GENERATOR_SIZE=1000 QUICKCHECK_TESTS=10000 cargo test --release. This way the tested code is optimized before execution which would reduce the number of branches if it can be proven by the compiler.

ReinierMaas commented 6 years ago

Yes that is the blog post I found. I stumbled on this project earlier but it regained my attention!

blt commented 5 years ago

Hello @ReinierMaas, in support of #15 I've adapted the project to the use of cargo-fuzz. I've updated the readme with running instructions and it should be easy again to run individual tests. Sadly cargo test won't work but cargo fuzz run hash_map will.