Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Oct 30, 2024
1 parent e2560c4 commit a544f2f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/nf-core/scvitools/solo/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ nextflow_process {
tag "scvitools"
tag "scvitools/solo"

test("scdownstream - h5ad") {
test("solo") {
when {
process {
"""
"""
input[0] = [
[id: 'test'],
file("https://raw.githubusercontent.com/nf-core/test-datasets/scdownstream/samples/SAMN14430799_custom_emptydrops_filter_matrix.h5ad", checkIfExists: true)
Expand All @@ -25,19 +25,21 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(process.out.versions).match("versions") },
{ assert snapshot(process.out.predictions[0][1]).match("predictions") },
{ assert snapshot(process.out.h5ad[0][1]).match("h5ad") }
)
}

}

test("scdownstream - h5ad - stub") {
test("solo - stub") {

options "-stub"

when {
process {
"""
"""
input[0] = [
[id: 'test'],
file("https://raw.githubusercontent.com/nf-core/test-datasets/scdownstream/samples/SAMN14430799_custom_emptydrops_filter_matrix.h5ad", checkIfExists: true)
Expand All @@ -49,7 +51,7 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
{ assert snapshot(process.out.versions).match("versions-stub") }
)
}

Expand Down
46 changes: 46 additions & 0 deletions modules/nf-core/scvitools/solo/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"h5ad": {
"content": [
"test.h5ad:md5,f9383a40d73b94de0f3b37acbbc035e0"
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-30T22:34:08.119582652"
},
"versions": {
"content": [
[
"versions.yml:md5,0c1648ef0621ccd553306f34fa3a48ab"
]
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-30T22:34:08.098413839"
},
"predictions": {
"content": [
"test.pkl:md5,900c699a6aac85a2742a6057f1b1f071"
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-30T22:34:08.113934941"
},
"versions-stub": {
"content": [
[
"versions.yml:md5,ed24509e2497f9c16ae5be9472becded"
]
],
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-30T22:47:14.597527192"
}
}

0 comments on commit a544f2f

Please sign in to comment.