Conversation
|
kedhammar
reviewed
Feb 5, 2025
kedhammar
reviewed
Feb 7, 2025
|
|
||
| then { | ||
| // stable_name: All files + folders in ${params.outdir}/ with a stable name | ||
| def stable_name = getAllFilesFromDir( |
Contributor
There was a problem hiding this comment.
Is it possible to refactor these function definitions so they don't have to be redefined for each test?
Collaborator
Author
There was a problem hiding this comment.
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?
kedhammar
approved these changes
Feb 7, 2025
Contributor
kedhammar
left a comment
There was a problem hiding this comment.
I'm not too savvy with nf-test, but LGTM :)
I've added some comments that are optional to address.
Collaborator
Author
|
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 :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back 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.mdis updated.