-
Notifications
You must be signed in to change notification settings - Fork 4
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
Environment groups #26
Comments
There's another quality-of-life problem with differential testing setups currently: if you really only want to do differential testing (checking that two commands have the same output) and not expect testing (checking their output against a checked-in saved result file), it's sort of annoying. You have to |
I'm a big fan of something to make differential testing easier somehow! Adrian has covered the pain point precisely: half of the output is of the form I just want to point out that, at least in Pollen's situation, the inputs to
The way to wrestle this into submission would be:
But it is wasteful to create the .og repeatedly in this way: most of the other differential tests would have been happy to reuse it. There is currently only one differential test that makes its .og afresh, and that is because it absolutely needs to. |
In Pollen, we have built up a long list of Turnt testing environments that all do differential testing on separate subcommands:
https://github.com/cucapra/pollen/blob/main/test/turnt.toml
So, the
chop_oracle
environment goes with thechop_test
environment in the sense that they share the same output file—i.e., they are doing "differential testing" together. But there are other such pairs too in the same configuration:crush_oracle
goes withcrush_test
, and they do not really relate tochop_*
.Perhaps we should introduce a concept of named "environment groups." Groups of environments would do two things:
turnt -e crush
, for instance, as a shorthand forturnt -e crush_test -e crush_oracle
.The text was updated successfully, but these errors were encountered: