This repository was archived by the owner on Apr 8, 2024. It is now read-only.
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
Testing strategy #5
Open
Description
What will the testing strategy look like?
This is a pretty broad, but important topic. I'll just spew some random questions I had:
- What corpus can be used?
- How much should new, hand-written tests be made?
- What types of tests? Pass/fail? Verifying error span/locations? Checking against expected AST/parse trees? Comparing against other rust parsers?
- How can it be ensured the grammar doesn't fall too far behind rustc? Is there some way to test between them to quickly highlight divergence? (Maybe even running something in rust-lang/rust's CI to catch it at the PR stage?)
- Depending on how slow the tests run, can they be segregated so that when experimenting with one part of the grammar (patterns for example), you can focus on subsets?
- Should fuzzing be employed?
A few relevant links that I had lying around:
Metadata
Metadata
Assignees
Labels
No labels