diff --git a/tests/modules/fastaIndex/samtools/main.nf.test b/tests/modules/fastaIndex/samtools/main.nf.test index 3d87f0b..fcd7678 100644 --- a/tests/modules/fastaIndex/samtools/main.nf.test +++ b/tests/modules/fastaIndex/samtools/main.nf.test @@ -6,12 +6,12 @@ nextflow_process { tag "module" - test("Should produce the fasta index") { + test("Should produce the fasta index (compressed genome)") { when { process { """ - input[0] = "${baseDir}/data/genome.fa" + input[0] = "${baseDir}/data/genome.fa.gz" """ } } @@ -19,12 +19,25 @@ nextflow_process { then { assert process.success assert snapshot(process.out).match() - with(process.out[0]) { - assert size() == 1 - assert path(get(0)).md5 == "12d36d122df8dfe8fcfc96d78f785328" + } + + } + + test("Should produce the fasta index (uncompressed genome)") { + + when { + process { + """ + input[0] = "${baseDir}/data/genome.fa" + """ } } + then { + assert process.success + assert snapshot(process.out).match() + } + } } diff --git a/tests/modules/fastaIndex/samtools/main.nf.test.snap b/tests/modules/fastaIndex/samtools/main.nf.test.snap index 0d7cf12..cf0db22 100644 --- a/tests/modules/fastaIndex/samtools/main.nf.test.snap +++ b/tests/modules/fastaIndex/samtools/main.nf.test.snap @@ -1,5 +1,5 @@ { - "Should produce the fasta index": { + "Should produce the fasta index (compressed genome)": { "content": [ { "0": [ @@ -11,6 +11,20 @@ "nf-test": "0.8.4", "nextflow": "23.10.1" }, - "timestamp": "2024-04-16T11:50:45.127291" + "timestamp": "2024-04-18T18:59:06.37067" + }, + "Should produce the fasta index (uncompressed genome)": { + "content": [ + { + "0": [ + "genome.fa.fai:md5,12d36d122df8dfe8fcfc96d78f785328" + ] + } + ], + "meta": { + "nf-test": "0.8.4", + "nextflow": "23.10.1" + }, + "timestamp": "2024-04-18T18:59:15.457162" } } \ No newline at end of file