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

nf-test for snpsites #5284

Merged
merged 16 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from 8 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
29 changes: 29 additions & 0 deletions modules/nf-core/snpsites/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "snpsites"

test("sarscov2 - all_sites_fas") {

when {
process {
"""
input[0] = file(params.test_data['sarscov2']['genome']['all_sites_fas'], checkIfExists: true)
thanhleviet marked this conversation as resolved.
Show resolved Hide resolved
"""
}
}

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

}
}
50 changes: 50 additions & 0 deletions modules/nf-core/snpsites/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"constant_sites": {
"content": [
[
"constant.sites.txt:md5,8b9b226e3787f7baaefce07405af22c9"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T16:10:41.912047"
},
"Test snpsites": {
"content": [
[
"versions.yml:md5,af6942a02036a7ff2eadb6ecf344c619"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T15:59:15.769873"
},
"constant_sites_string": {
"content": [
[
"8789,5363,5747,9456"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T15:59:15.817838"
},
"fasta": {
"content": [
[
"filtered_alignment.fas:md5,f96c7513003e878e16fa9eac9fcda0f4"
]
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
},
"timestamp": "2024-03-19T15:59:15.823904"
}
}
2 changes: 2 additions & 0 deletions modules/nf-core/snpsites/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
snpsites:
- "modules/nf-core/snpsites/**"
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2016,9 +2016,6 @@ snpsift/dbnsfp:
snpsift/split:
- modules/nf-core/snpsift/split/**
- tests/modules/nf-core/snpsift/split/**
snpsites:
- modules/nf-core/snpsites/**
- tests/modules/nf-core/snpsites/**
somalier/ancestry:
- modules/nf-core/somalier/ancestry/**
- tests/modules/nf-core/somalier/ancestry/**
Expand Down
12 changes: 0 additions & 12 deletions tests/modules/nf-core/snpsites/main.nf

This file was deleted.

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

This file was deleted.

9 changes: 0 additions & 9 deletions tests/modules/nf-core/snpsites/test.yml

This file was deleted.

Loading