-
Notifications
You must be signed in to change notification settings - Fork 59
Add more nf tests #655
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
base: dev
Are you sure you want to change the base?
Add more nf tests #655
Conversation
|
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.4.1. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
|
Should we also add |
Yes! On my to-do list, just started with the test config first :) |
|
So will you add all those nf-test to this PR? |
|
I was thinking one PR for each config. |
|
For future reference, how I'm reviewing:
|
jfy133
left a comment
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.
Summary:
Eerything captured now @sofstam and this is MUCH better to look at now, only a couple of errors, and otherwise the final improvement is applying the 'xyz contains string:' to single assertionsin addition to the getAllFilesFromDir - this will makes it MUCH easier to identify which files to investigate if something breaks...
Otherwise overview summary (but mostly just the sentence prefixes)
- CENTRIFUGE: no combined report? (or missing sentence prefix in assrtions -> there are two 'trues')
- DIAMOND:
tsvsmissing sentence prefix (side question: why no combined report for this?) - FASTQC: correct this is entirely excluded from assertions (just list file names?)
- GANON:
_report.trestrings equalfalse! No combined report (or is this thetrueand missing sentenceprefix?) - KAIJU: no sentence prefixes (but correct number of etnries)
- KMCP: shouldn't these be md5sums?
- KRAKEN2: no sentence prefixes (but correct number of entries)
- METAPHLAN: two sets of
.biom contains? I think the second should be '_profile.txt` ? - NONPAREIL: missing sentence prefixes; the list of files has
metaphlanfiles listed though? - SAMTOOLS_STATS: shouldn't these be md5sums?
- TAXPASTA: missing sentence suffix (but correct number of files)
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
jfy133
left a comment
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.
Final refinements!
| file("$outputDir/nonpareil/nonpareil_all_samples.tsv").getName() + " contains string:'diversity':" + file("$outputDir/nonpareil/nonpareil_all_samples.tsv").text.contains("diversity"), | ||
| stable_content_nonpareil).match("nonpareil") }, | ||
| { assert snapshot (file("$outputDir/porechop_abi/ERR3201952_ERR3201952_porechop_abi.log").text.contains("Looking for known adapter"), | ||
| stable_content_porechopabi).match("porechop_abi")}, |
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.
This still appears to be a string not an md5sum in the snapshot?
taxprofiler/tests/default.nf.test.snap
Line 729 in 12c9d2b
| "ERR3201952_ERR3201952_porechop_abi.log" |
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.
Shall we check for the contents of the file? This is an unstable file.
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
|
@jfy133 |
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
Add nf-test for test profile
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).