-
Notifications
You must be signed in to change notification settings - Fork 9
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 a pytest-workflow generate command line function #193
Comments
It would be neat to have a way to generate tests, or at least the file paths that are produced. However, I'm not a big fan of testing for the checksum of the output files, since it is impossible to tell what went wrong when it changes. How about adding a "contains" for the first line of the file? That way you can also include a test for stderr and stdout. |
I agree. However, it is trivial to delete the md5sums afterwards if you don't need them. If you want a bit-for-bit reproducible workflow it is quite useful that this work is already done. So, this should be a CLI option?
That would be |
Ideally, we would only generate tests that we know will pass, but of course we cannot even know that the same files will be generated when you run Additionally, we can allow the user to specify if they want additional tests on the files, like |
Command line invocation:
First argument is the test file to generate. Second argument is the test name. All the other arguments are treated as the command argument.
Resulting yaml:
Etc.
This is especially useful for generating all the file paths. stdout and stderr are omitted as these contain timestamps and dates.
This feature is inspired by nf-tests snapshot function.
@DavyCats, @Redmar-van-den-Berg what do you think of this?
The text was updated successfully, but these errors were encountered: