Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nf-test for pairtools/stats #6260

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading