shapr / kudzu

coverage driven random testing framework
BSD 3-Clause "New" or "Revised" License
21 stars 2 forks source link

`cabal repl` use needs to restart the count #14

Open shapr opened 2 weeks ago

shapr commented 2 weeks ago

Because the RTS only counts up for regions executed, kudzu appears to do nothing after multiple runs in cabal repl

suggestion: zero the HPC counters?

shapr commented 2 weeks ago

After discussion with @JoshMeredith about path dependence, I think it makes more sense to save and clear the HPC values before a test run, and then restore the values after the run.