Skip to content

Commit

Permalink
Select only relevant output channel in snakemake nf-test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrtalbot committed Jul 31, 2023
1 parent 4033bd6 commit c024266
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 111 deletions.
2 changes: 1 addition & 1 deletion modules/nf-core/snakemake/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ process SNAKEMAKE {
tuple val(meta2), path(snakemake)

output:
tuple val(meta), path("**[!.snakemake]"), optional: true , emit: outputs
tuple val(meta), path("**[!.snakemake]"), optional: true , emit: outputs
tuple val(meta), path(".snakemake", type: 'dir', hidden: true), emit: snakemake_dir
path "versions.yml" , emit: versions

Expand Down
2 changes: 1 addition & 1 deletion tests/modules/nf-core/snakemake/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ rule hello_world:

then {
assert process.success
assert snapshot(process.out).match()
assert snapshot(process.out.ouputs).match()
}

}
Expand Down
111 changes: 2 additions & 109 deletions tests/modules/nf-core/snakemake/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,113 +1,6 @@
{
"Should run without failures": {
"content": [
{
"0": [
[
{
"id": "input"
},
[
"2023-07-31T093650.969680.snakemake.log:md5,1ba1e5b1f45fd77c0a0b2fced5597c9a",
"aGVsbG8udHh0:md5,5d5b69e1a49e8d8aeac628ee5526e94e",
"hello.txt:md5,e59ff97941044f85df5297e1c302d260",
"versions.yml:md5,91f038cba572e2b7b6dfe06e0e088ce5"
]
]
],
"1": [
[
{
"id": "input"
},
[
[

],
[

],
[

],
[

],
[

],
[
"2023-07-31T093650.969680.snakemake.log:md5,1ba1e5b1f45fd77c0a0b2fced5597c9a"
],
[
"aGVsbG8udHh0:md5,5d5b69e1a49e8d8aeac628ee5526e94e"
],
[

],
[

]
]
]
],
"2": [
"versions.yml:md5,91f038cba572e2b7b6dfe06e0e088ce5"
],
"outputs": [
[
{
"id": "input"
},
[
"2023-07-31T093650.969680.snakemake.log:md5,1ba1e5b1f45fd77c0a0b2fced5597c9a",
"aGVsbG8udHh0:md5,5d5b69e1a49e8d8aeac628ee5526e94e",
"hello.txt:md5,e59ff97941044f85df5297e1c302d260",
"versions.yml:md5,91f038cba572e2b7b6dfe06e0e088ce5"
]
]
],
"snakemake_dir": [
[
{
"id": "input"
},
[
[

],
[

],
[

],
[

],
[

],
[
"2023-07-31T093650.969680.snakemake.log:md5,1ba1e5b1f45fd77c0a0b2fced5597c9a"
],
[
"aGVsbG8udHh0:md5,5d5b69e1a49e8d8aeac628ee5526e94e"
],
[

],
[

]
]
]
],
"versions": [
"versions.yml:md5,91f038cba572e2b7b6dfe06e0e088ce5"
]
}
],
"timestamp": "2023-07-31T09:36:55+0000"
"content": null,
"timestamp": "2023-07-31T09:50:07+0000"
}
}

0 comments on commit c024266

Please sign in to comment.