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

Add automated testing: Negative compiler tests #55

Open
cpurdy opened this issue May 19, 2023 · 0 comments
Open

Add automated testing: Negative compiler tests #55

cpurdy opened this issue May 19, 2023 · 0 comments
Labels
infrastructure CI, build, test, organization, automation

Comments

@cpurdy
Copy link
Collaborator

cpurdy commented May 19, 2023

Is your infrastructure request related to a problem? Please describe. (Include any links to
other related issues.)

We need a suite of tests for things that the compiler is supposed to reject. This is important because breaking changes go unnoticed, because we're not verifying that the compiler correctly reports errors. (We're generally only testing the positive cases, not the negative cases.)

Describe the solution you'd like
Requirements: (i) Automated. (ii) Easy to add tests. (iii) Obvious reporting.

Describe alternatives you've considered
We have considered: Each test consisting of a source file (or source directory) and a separate file indicating the expected compiler error.

Additional context
Gene has a small collection of negative tests that he periodically verifies by hand.

@cpurdy cpurdy added the infrastructure CI, build, test, organization, automation label May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure CI, build, test, organization, automation
Projects
None yet
Development

No branches or pull requests

1 participant