-
Notifications
You must be signed in to change notification settings - Fork 26
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
is there a way we can allow for deliberate snapshot matching? #197
Comments
Thanks for opening this as an issue @lukfor! :) |
I see. We could extend the mechanism so that ids starting, for example, with '!' could be used multiple times. E.g.: assert snapshot(...).match("!common_files")
|
Thanks for being so responsive on this! That sounds like a sensible solution to me. |
Hey, @lukfor. I thought this was the opposite because I ran into it while using "versions" in nf-core/modules, and I can't find an example of anyone successfully doing it in modules. I've found examples of the opposite. I just searched for "match versions" in the repo. |
I've actually found it very useful to be able to have multiple tests refer to the same snapshot id. When testing a pipeline's logic, there will be times when skipping a process will impact files downstream of the process but not upstream. In this situation, it's been quite useful to group files that are expected to be unchanged into one snapshot id (which can be used across multiple tests) and those you expect to change. E.g.
With the new modification, if I now want to check that the files I expect to be unchanged are truly unchanged across multiple test, I would have to manually compare md5s in the snapshot.
Originally posted by @RHReynolds in #188 (comment)
The text was updated successfully, but these errors were encountered: