-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nf-test for bedtools/split (#6324)
Co-authored-by: Simon Pearce <[email protected]>
- Loading branch information
Showing
6 changed files
with
77 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
nextflow_process { | ||
|
||
name "Test Process BEDTOOLS_SPLIT" | ||
script "../main.nf" | ||
process "BEDTOOLS_SPLIT" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "bedtools" | ||
tag "bedtools/split" | ||
|
||
test("test-bedtools-split") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id:'test' ], // meta map | ||
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.multi_intervals.bed', checkIfExists: true), | ||
2 | ||
] | ||
""" | ||
} | ||
} | ||
|
||
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,41 @@ | ||
{ | ||
"test-bedtools-split": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test.00001.bed:md5,d58e5e46c2fcc3b8be5db0f023e93cb5", | ||
"test.00002.bed:md5,03caf952e9297a54620d2bbba8dc2823" | ||
] | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,33e0d5f886b7f0ed6f9c3e19b049357f" | ||
], | ||
"beds": [ | ||
[ | ||
{ | ||
"id": "test" | ||
}, | ||
[ | ||
"test.00001.bed:md5,d58e5e46c2fcc3b8be5db0f023e93cb5", | ||
"test.00002.bed:md5,03caf952e9297a54620d2bbba8dc2823" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,33e0d5f886b7f0ed6f9c3e19b049357f" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.4" | ||
}, | ||
"timestamp": "2024-08-26T13:50:28.137857" | ||
} | ||
} |
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.