Skip to content

Commit

Permalink
Added nf-test for scoary (#6255)
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp authored Aug 23, 2024
1 parent 13f3c08 commit 73a1da8
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 32 deletions.
35 changes: 35 additions & 0 deletions modules/nf-core/scoary/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "scoary"

test("test-scoary") {

when {
process {
"""
input[0] = [ [ id:'test', single_end:false ], // meta map
file("https://github.com/AdmiralenOla/Scoary/raw/master/scoary/exampledata/Gene_presence_absence.csv", checkIfExists: true),
file("https://github.com/AdmiralenOla/Scoary/raw/master/scoary/exampledata/Tetracycline_resistance.csv", checkIfExists: true)
]
input[1] = []
"""
}
}

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

}
43 changes: 43 additions & 0 deletions modules/nf-core/scoary/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"test-scoary": {
"content": [
{
"0": [
[
{
"id": "test",
"single_end": false
},
[
"Bogus_trait.results.csv:md5,9550c692bbe6ff0ac844357bfabb809b",
"Tetracycline_resistance.results.csv:md5,a87740818ab4de69a758fc75d7b879dd"
]
]
],
"1": [
"versions.yml:md5,f8f8a2300f84de4e8184c9dd33579ccd"
],
"csv": [
[
{
"id": "test",
"single_end": false
},
[
"Bogus_trait.results.csv:md5,9550c692bbe6ff0ac844357bfabb809b",
"Tetracycline_resistance.results.csv:md5,a87740818ab4de69a758fc75d7b879dd"
]
]
],
"versions": [
"versions.yml:md5,f8f8a2300f84de4e8184c9dd33579ccd"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-23T10:40:51.183745"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1268,9 +1268,6 @@ samtools/reheader:
scimap/mcmicro:
- modules/nf-core/scimap/mcmicro/**
- tests/modules/nf-core/scimap/mcmicro/**
scoary:
- modules/nf-core/scoary/**
- tests/modules/nf-core/scoary/**
scramble/clusteranalysis:
- modules/nf-core/scramble/clusteranalysis/**
- tests/modules/nf-core/scramble/clusteranalysis/**
Expand Down
15 changes: 0 additions & 15 deletions tests/modules/nf-core/scoary/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 73a1da8

Please sign in to comment.