Skip to content

Commit

Permalink
Added nf-test for pairtools/stats
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Aug 22, 2024
1 parent fe9614c commit 312ea74
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 29 deletions.
33 changes: 33 additions & 0 deletions modules/nf-core/pairtools/stats/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

nextflow_process {

name "Test Process PAIRTOOLS_STATS"
script "../main.nf"
process "PAIRTOOLS_STATS"

tag "modules"
tag "modules_nfcore"
tag "pairtools"
tag "pairtools/stats"

test("test-pairtools-stats") {

when {
process {
"""
input[0] = [ [ id:'test', single_end:false ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/pairtools/mock.pairsam', checkIfExists: true) ]
"""
}
}

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

}
37 changes: 37 additions & 0 deletions modules/nf-core/pairtools/stats/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"test-pairtools-stats": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
"test.pairs.stat:md5,77a1b2b0b146e00313435f4a707d2d0d"
]
],
"1": [
"versions.yml:md5,97ccf9babab2e888f52934164b9ef0d8"
],
"stats": [
[
{
"id": "test",
"single_end": false
},
"test.pairs.stat:md5,77a1b2b0b146e00313435f4a707d2d0d"
]
],
"versions": [
"versions.yml:md5,97ccf9babab2e888f52934164b9ef0d8"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T11:05:50.844045"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,6 @@ pairtools/select:
pairtools/sort:
- modules/nf-core/pairtools/sort/**
- tests/modules/nf-core/pairtools/sort/**
pairtools/stats:
- modules/nf-core/pairtools/stats/**
- tests/modules/nf-core/pairtools/stats/**
panaroo/run:
- modules/nf-core/panaroo/run/**
- tests/modules/nf-core/panaroo/run/**
Expand Down
13 changes: 0 additions & 13 deletions tests/modules/nf-core/pairtools/stats/main.nf

This file was deleted.

5 changes: 0 additions & 5 deletions tests/modules/nf-core/pairtools/stats/nextflow.config

This file was deleted.

8 changes: 0 additions & 8 deletions tests/modules/nf-core/pairtools/stats/test.yml

This file was deleted.

0 comments on commit 312ea74

Please sign in to comment.