Skip to content

Commit

Permalink
Initial attempt at nf-test for rsem_merge_counts
Browse files Browse the repository at this point in the history
  • Loading branch information
robsyme committed Mar 9, 2024
1 parent cd6d5ac commit 6f5632c
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
28 changes: 28 additions & 0 deletions modules/local/rsem_merge_counts/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
nextflow_process {

name "Test Process RSEM_MERGE_COUNTS"
script "../main.nf"
process "RSEM_MERGE_COUNTS"
tag "modules'"
tag "modules_local"
tag "rsem_merge_counts"

test("Should run without failures") {

when {
process {
"""
input[0] = file("${moduleTestDir}/data/genes/*")
input[1] = file("${moduleTestDir}/data/isoforms/*")
"""
}
}

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

}

}
43 changes: 43 additions & 0 deletions modules/local/rsem_merge_counts/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"Should run without failures": {
"content": [
{
"0": [
"rsem.merged.gene_counts.tsv:md5,7d1da94077dc2f90cfb2c793ca5b7446"
],
"1": [
"rsem.merged.gene_tpm.tsv:md5,39bad606eb012456bba1d995fe0feb5f"
],
"2": [
"rsem.merged.transcript_counts.tsv:md5,e40bba0aafc5904361513b3513c217ad"
],
"3": [
"rsem.merged.transcript_tpm.tsv:md5,abbaac45f9938716c58d604299ea284e"
],
"4": [
"versions.yml:md5,48ca3e12c91829af8019462b3f6aa29c"
],
"counts_gene": [
"rsem.merged.gene_counts.tsv:md5,7d1da94077dc2f90cfb2c793ca5b7446"
],
"counts_transcript": [
"rsem.merged.transcript_counts.tsv:md5,e40bba0aafc5904361513b3513c217ad"
],
"tpm_gene": [
"rsem.merged.gene_tpm.tsv:md5,39bad606eb012456bba1d995fe0feb5f"
],
"tpm_transcript": [
"rsem.merged.transcript_tpm.tsv:md5,abbaac45f9938716c58d604299ea284e"
],
"versions": [
"versions.yml:md5,48ca3e12c91829af8019462b3f6aa29c"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-09T17:13:37.377348"
}
}
2 changes: 2 additions & 0 deletions modules/local/rsem_merge_counts/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RSEM_MERGE_COUNTS:
- "modules/local/rsem_merge_counts/**"

0 comments on commit 6f5632c

Please sign in to comment.