Skip to content

Commit

Permalink
test(#119): Add a test for gzipped references
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Feb 14, 2024
1 parent fbf44d4 commit 2b32a6b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/pipeline/references.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ nextflow_pipeline {
workflow.trace.tasks().size(),
).match()
}
}

// https://github.com/nf-core/nascent/issues/119
test("Should work with gzipped references") {
// PINTS Fails because it doesn't find anything.
config 'tests/pipeline/skip_pints.config'
when {
params {
outdir = "$outputDir"
aligner = "bwa"
fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/genome.fasta.gz'
gtf = 'https://raw.githubusercontent.com/nf-core/test-datasets/rnaseq/reference/genes.gtf.gz'
}
}

then {
assert workflow.failed
assert snapshot(
workflow.trace.tasks().size(),
).match()
}

}

Expand Down
14 changes: 14 additions & 0 deletions tests/pipeline/references.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
{
"Should work with gzipped references": {
"content": [
0
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-02-14T15:02:05.680983538"
},
"Should work with BWA Index": {
"content": [
127
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2023-08-25T01:57:15+0000"
}
}

0 comments on commit 2b32a6b

Please sign in to comment.