Open hmijail opened 2 years ago
Bumping this old issue. I notice that the README.md file was updated on July 2022, which kinda answered questions 4 and 5. But the others remain...
Apologies for missing this issue, @hmijail... Test Generation just got upgraded as of Dafny 4.0 so I will answer the questions above based on the new version. Please feel free to ping me about any test generation and counterexample extraction issues!
1) Yes
2) Generated tests now include oracles that are extracted from non-ghost post-conditions.
3) Yes, test generation and dead code identification share the same mechanism under the hood. The distinction is made in case there would be other ways of detecting dead code in the future
4) At the moment, yes, testing helps to exercise external methods only indirectly.
5) Yes, that would be the idea.
6) Done. The CLI has changed a lot recently in general, you can now simply run dafny generate-tests
and get a dedicated help message
7) I think "unreachable code" would be the best term since the tool will report Boogie blocks that, if you put an assert false
in them, will not verify.
I'm looking for ways to test Dafny code, found the test generation page and have a few questions that I'm hoping you could answer:
/generateTest
options. I'm guessing that the connection to test generation is just the underlying "fuzzing" / path detection machinery - is that correct?/definiteAssignment:3
is helpful and brings no harm for test generation and dead code detection. But then, why not make it an internal default for those?