-
Notifications
You must be signed in to change notification settings - Fork 431
Automatically add aliases for expect tests #10239
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
Comments
Adding automatic aliases seems a bit too much, but my suggestion from elsewhere was to add |
I don't see the issue with adding more aliases (what's the downside?), but in your example you can already execute your tests individually by building the expected target. E.g. |
This does not seem to be the same thing. Running I like the idea of adding |
Okay, then the command should be |
Building an Here's a minimal example of what I'm describing. Files:
Commands:
The output of |
Okay, that's convincing. Feel free to send a PR to add an alias |
Desired Behavior
For Dune's built-in expect tests, where a test executable prints to stdout and Dune diffs the output with a
.expected
file, it would be useful if Dune provided an alias for each test.Expect test diffs can be large so the ability to specify a single test would be useful. Right now, the options to execute a single expect test are either to put them in separate directories or manually define each with a rule instead of the
(tests ...)
stanza.Dune already provides aliases for each cram test, so extending that feature to expect tests feels natural.
Example
Directory:
Contents of
test/dune
:Commands:
The text was updated successfully, but these errors were encountered: