Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always generate _Test__Main_ #5870

Open
ajewellamz opened this issue Oct 29, 2024 · 1 comment
Open

Always generate _Test__Main_ #5870

ajewellamz opened this issue Oct 29, 2024 · 1 comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny

Comments

@ajewellamz
Copy link
Collaborator

Summary

Test__Main should be generated from translate as well as test

Background and Motivation

Sometimes a person wants to do some testing or instrumentation, and needs to get at an entry point that runs all the tests. Test__Main is that entry point, and so it should be more widely available.

Proposed Feature

In Rust, or possibly all languages, dafny translate should generate the same Test__Main function as dafny test.
The only difference between the two outputs would then be that dafny test creates a main() where dafny translate does not.

Alternatives

No response

@ajewellamz ajewellamz added the kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny label Oct 29, 2024
@keyboardDrummer
Copy link
Member

keyboardDrummer commented Nov 4, 2024

Have you looked at the --include-test-runner option that's part of all the dafny translate commands?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
Projects
None yet
Development

No branches or pull requests

2 participants