-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow setup and clean commands #6
Comments
There are two problems here:
For 1, I recommend using TOML multiline strings. For 2, I think perhaps runt should not capture STDERR by default. I can implement that. |
This is also something I'd like and I'd argue against point 1. For a runt script which needs setup and cleanup, I'd say it is easier to read
than
because it is made clear what is being tested vs what is just there for setting and cleaning up I'd also be interested in global setup commands in addition to setup commands local to the tests For example, I now have to remember run instead of just
|
Yeah, another question I have with this is should the setup be considered atomic? If so, we'd need some way of enforcing that for each test suite. Right now, |
That's fair. Perhaps it could internally be merged into |
We could but that won't fix the whole |
Yeah that's what i had in mind. One global setup that is run sequentially, then a bunch of independent setup cmd cleanup and then perhaps a final global cleanup |
Ah okay, that seems like a reasonable thing to start with in that case. Let me know if you're interested in implementing this and I can help get started with it! |
If you want to run a makefile to generate the file to do diff testing on, you are forced to make the command look like:
It would be nice if you could instead do:
Eventually, you could imagine automating the cleanup to remove any files generated during the
setup
command.The text was updated successfully, but these errors were encountered: