From 5593d429c3b4224b6528c1b176e39a3f96bae2dc Mon Sep 17 00:00:00 2001 From: Suzanne Jin Date: Fri, 13 Dec 2024 15:38:13 +0000 Subject: [PATCH] [tabulartogseachip] add versions snapshot --- modules/nf-core/custom/tabulartogseachip/main.nf | 2 +- .../nf-core/custom/tabulartogseachip/tests/main.nf.test | 6 ++++-- .../custom/tabulartogseachip/tests/main.nf.test.snap | 7 +++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/modules/nf-core/custom/tabulartogseachip/main.nf b/modules/nf-core/custom/tabulartogseachip/main.nf index 680ba38e422..3065b5f925f 100644 --- a/modules/nf-core/custom/tabulartogseachip/main.nf +++ b/modules/nf-core/custom/tabulartogseachip/main.nf @@ -38,7 +38,7 @@ process CUSTOM_TABULARTOGSEACHIP { cat <<-END_VERSIONS > versions.yml "${task.process}": - bash: \$(echo \$(bash --version | grep -Eo 'version [[:alnum:].]+' | sed 's/version //')) + version: \$(echo $VERSION) END_VERSIONS """ } diff --git a/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test b/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test index 18289b914c9..08d82ef598c 100644 --- a/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test +++ b/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test @@ -24,8 +24,10 @@ nextflow_process { then { assertAll( { assert process.success }, - { assert snapshot(process.out.chip).match() }, - { assert file(process.out.versions[0]).text.contains('bash') } + { assert snapshot( + process.out.chip, + process.out.versions + ).match() } ) } diff --git a/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test.snap b/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test.snap index fb6390d0d33..052333c70d7 100644 --- a/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test.snap +++ b/modules/nf-core/custom/tabulartogseachip/tests/main.nf.test.snap @@ -3,12 +3,15 @@ "content": [ [ "SRP254919.salmon.merged.gene_counts.top1000cov.chip:md5,2ab8a685c675ce2fb97142526766044a" + ], + [ + "versions.yml:md5,8416d7d8e5723a32c360278d4a1c4597" ] ], "meta": { "nf-test": "0.9.2", "nextflow": "24.10.2" }, - "timestamp": "2024-12-13T14:25:21.122994122" + "timestamp": "2024-12-13T15:37:38.643112727" } -} +} \ No newline at end of file