-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into fix_rrnatranscript_bug
- Loading branch information
Showing
6 changed files
with
131 additions
and
2 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
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 FUSIONREPORT_DOWNLOAD" | ||
script "../main.nf" | ||
process "FUSIONREPORT_DOWNLOAD" | ||
|
||
test("Download fusionreport databases") { | ||
config './nextflow.config' | ||
|
||
when { | ||
process { | ||
""" | ||
// This process doesn't have any inputs | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot( | ||
process.out.fusiongdb2, | ||
process.out.mitelman, | ||
process.out.versions | ||
).match() } | ||
) | ||
} | ||
} | ||
|
||
test("Create stub files") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
// This process doesn't have any inputs | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
modules/local/fusionreport/download/tests/main.nf.test.snap
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,67 @@ | ||
{ | ||
"Download fusionreport databases": { | ||
"content": [ | ||
[ | ||
"fusiongdb2.db:md5,e1ac123a744e515d3e5f85b8344d526a" | ||
], | ||
[ | ||
"mitelman.db:md5,1363795c97f77c641065ecd9ad0e484a" | ||
], | ||
[ | ||
"versions.yml:md5,fa5f13c563f431912048c1802b5a0c74" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.10.2" | ||
}, | ||
"timestamp": "2024-12-02T13:09:56.930477745" | ||
}, | ||
"Create stub files": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
"fusiongdb2.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"1": [ | ||
"mitelman.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"2": [ | ||
"cosmic.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"3": [ | ||
"DB-timestamp.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"4": [ | ||
"fusion_report.log:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"5": [ | ||
"versions.yml:md5,fa5f13c563f431912048c1802b5a0c74" | ||
], | ||
"cosmic": [ | ||
"cosmic.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"fusiongdb2": [ | ||
"fusiongdb2.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"log": [ | ||
"fusion_report.log:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"mitelman": [ | ||
"mitelman.db:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"timestamp": [ | ||
"DB-timestamp.txt:md5,d41d8cd98f00b204e9800998ecf8427e" | ||
], | ||
"versions": [ | ||
"versions.yml:md5,fa5f13c563f431912048c1802b5a0c74" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.9.0", | ||
"nextflow": "24.10.2" | ||
}, | ||
"timestamp": "2024-12-02T13:10:12.577952658" | ||
} | ||
} |
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,5 @@ | ||
process { | ||
withName: 'FUSIONREPORT_DOWNLOAD' { | ||
ext.args = "--no-cosmic" | ||
} | ||
} |