-
Notifications
You must be signed in to change notification settings - Fork 22
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
Set up nft-utils in tests #75
Conversation
|
@@ -15,15 +15,28 @@ nextflow_pipeline { | |||
} | |||
|
|||
then { | |||
// stable_name: All files + folders in ${params.outdir}/ with a stable name | |||
def stable_name = getAllFilesFromDir( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to refactor these function definitions so they don't have to be redefined for each test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tbh I've just been copying my homework from sarek here 🙈 I agree it would be nice though, but I'm not sure how to do it, maybe @maxulysse has some better ideas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too savvy with nf-test, but LGTM :)
I've added some comments that are optional to address.
Thanks for the review :) I'll merge that for now, if someone comes up with a solution to avoid duplicating the code in every test we can always improve that later :) |
nft-utils is a Nextflow plugin to ease testing with nf-test. This PR makes use of nft-utils functions to take better snapshots in all the tests we have.
It also adds tests to ensure all the tools can be skipped at once.
PR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).CHANGELOG.md
is updated.