-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* nf-test for snpsites * remove old pytest * Delete modules/nf-core/snpsites/tests/nextflow.config * Update modules/nf-core/snpsites/tests/main.nf.test Co-authored-by: Joon Klaps <[email protected]> * Update assert Co-authored-by: Joon Klaps <[email protected]> * renamed test Co-authored-by: Joon Klaps <[email protected]> * reverted the input * updated input...again Co-authored-by: Joon Klaps <[email protected]> * fixed typo Co-authored-by: Joon Klaps <[email protected]> * Regenerate snapshot and fix linting --------- Co-authored-by: Joon Klaps <[email protected]> Co-authored-by: Simon Pearce <[email protected]>
- Loading branch information
1 parent
d5622b0
commit c50ccc7
Showing
9 changed files
with
139 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
nextflow_process { | ||
|
||
name "Test Process SNPSITES" | ||
script "../main.nf" | ||
process "SNPSITES" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "snpsites" | ||
|
||
test("sarscov2 - all_sites_fas") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/alignment/all_sites.fas', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
test("sarscov2 - all_sites_fas - stub") { | ||
options "-stub" | ||
when { | ||
process { | ||
""" | ||
input[0] = file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/alignment/all_sites.fas', checkIfExists: true) | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
|
||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"sarscov2 - all_sites_fas - stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
"filtered_alignment.fas:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"1": [ | ||
"constant.sites.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"2": [ | ||
"versions.yml:md5,af6942a02036a7ff2eadb6ecf344c619" | ||
], | ||
"3": [ | ||
"" | ||
], | ||
"constant_sites": [ | ||
"constant.sites.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"constant_sites_string": [ | ||
"" | ||
], | ||
"fasta": [ | ||
"filtered_alignment.fas:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"versions": [ | ||
"versions.yml:md5,af6942a02036a7ff2eadb6ecf344c619" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-08T15:20:57.589176616" | ||
}, | ||
"sarscov2 - all_sites_fas": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
"filtered_alignment.fas:md5,f96c7513003e878e16fa9eac9fcda0f4" | ||
], | ||
"1": [ | ||
"constant.sites.txt:md5,8b9b226e3787f7baaefce07405af22c9" | ||
], | ||
"2": [ | ||
"versions.yml:md5,af6942a02036a7ff2eadb6ecf344c619" | ||
], | ||
"3": [ | ||
"8789,5363,5747,9456" | ||
], | ||
"constant_sites": [ | ||
"constant.sites.txt:md5,8b9b226e3787f7baaefce07405af22c9" | ||
], | ||
"constant_sites_string": [ | ||
"8789,5363,5747,9456" | ||
], | ||
"fasta": [ | ||
"filtered_alignment.fas:md5,f96c7513003e878e16fa9eac9fcda0f4" | ||
], | ||
"versions": [ | ||
"versions.yml:md5,af6942a02036a7ff2eadb6ecf344c619" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.1" | ||
}, | ||
"timestamp": "2024-05-08T15:15:41.760289537" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
snpsites: | ||
- "modules/nf-core/snpsites/**" |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.