-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swap unzip to nf-test (continuation of 5357) (#5897)
* unzip stub, nf-test, snap * Revert "unzip stub, nf-test, snap" This reverts commit dec35aa. * Reapply "unzip stub, nf-test, snap" This reverts commit e0d708e. * added minimal required tests for process and stub * added snapshot * simplify snapshot input in stub test Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com> * remove unneeded stub files * migrate pytest for unzipfiles * add snapshot file for script block * added stub * added stub and stub test * updated stub snapshot for unzip * remove unneeded test config * Update snaps and malt * Update malt for linting * Fix linting for maltextract * Swap test-data paths for malt modules * Update modules/nf-core/maltextract/tests/main.nf.test --------- Co-authored-by: Sateesh <perisateesh@gmail.com> Co-authored-by: Jenny Leopoldina Smith <jennyl.smith12@gmail.com> Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com> Co-authored-by: Maxime U Garcia <max.u.garcia@gmail.com>
- Loading branch information
1 parent
96e59e7
commit b0c3ff2
Showing
22 changed files
with
327 additions
and
104 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
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 |
---|---|---|
@@ -1,24 +1,15 @@ | ||
{ | ||
"version": { | ||
"test_maltextract": { | ||
"content": [ | ||
[ | ||
"versions.yml:md5,4d87de5def1287321effde6545901cf6" | ||
] | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.0" | ||
}, | ||
"timestamp": "2024-03-19T13:58:17.979106" | ||
}, | ||
"results": { | ||
"content": [ | ||
], | ||
"ScanSummary.txt:md5,209fb35426f6a459db0f4af0dc544b10" | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "23.10.0" | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2024-03-19T14:03:56.643826" | ||
"timestamp": "2024-07-01T08:19:20.696046683" | ||
} | ||
} |
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,54 @@ | ||
nextflow_process { | ||
|
||
name "Test Process UNZIP" | ||
script "../main.nf" | ||
process "UNZIP" | ||
|
||
tag "modules" | ||
tag "modules_nfcore" | ||
tag "unzip" | ||
|
||
test("generic [tar] [tar_gz]") { | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id: 'hello' ], | ||
file(params.modules_testdata_base_path + 'generic/tar/hello.tar.gz', checkIfExists: true) | ||
] | ||
""" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert snapshot(process.out).match() } | ||
) | ||
} | ||
} | ||
|
||
test("generic [tar] [tar_gz] stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
process { | ||
""" | ||
input[0] = [ | ||
[ id: 'hello' ], | ||
file(params.modules_testdata_base_path + 'generic/tar/hello.tar.gz', 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,76 @@ | ||
{ | ||
"generic [tar] [tar_gz] stub": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "hello" | ||
}, | ||
[ | ||
|
||
] | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,52c55ce814e8bc9edc5a6c625ed794b8" | ||
], | ||
"unzipped_archive": [ | ||
[ | ||
{ | ||
"id": "hello" | ||
}, | ||
[ | ||
|
||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,52c55ce814e8bc9edc5a6c625ed794b8" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2024-06-30T19:16:37.11550986" | ||
}, | ||
"generic [tar] [tar_gz]": { | ||
"content": [ | ||
{ | ||
"0": [ | ||
[ | ||
{ | ||
"id": "hello" | ||
}, | ||
[ | ||
"hello.tar:md5,80c66db79a773bc87b3346035ff9593e" | ||
] | ||
] | ||
], | ||
"1": [ | ||
"versions.yml:md5,52c55ce814e8bc9edc5a6c625ed794b8" | ||
], | ||
"unzipped_archive": [ | ||
[ | ||
{ | ||
"id": "hello" | ||
}, | ||
[ | ||
"hello.tar:md5,80c66db79a773bc87b3346035ff9593e" | ||
] | ||
] | ||
], | ||
"versions": [ | ||
"versions.yml:md5,52c55ce814e8bc9edc5a6c625ed794b8" | ||
] | ||
} | ||
], | ||
"meta": { | ||
"nf-test": "0.8.4", | ||
"nextflow": "24.04.2" | ||
}, | ||
"timestamp": "2024-06-30T19:16:25.120242571" | ||
} | ||
} |
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 @@ | ||
unzip: | ||
- "modules/nf-core/unzip/**" |
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
Oops, something went wrong.