Skip to content

Commit

Permalink
Added nf-test for bedtools/split (#6324)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Pearce <[email protected]>
  • Loading branch information
GallVp and SPPearce authored Aug 26, 2024
1 parent dd86bbc commit 6dc8a32
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 33 deletions.
36 changes: 36 additions & 0 deletions modules/nf-core/bedtools/split/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "bedtools"
tag "bedtools/split"

test("test-bedtools-split") {

when {
process {
"""
input[0] = [
[ id:'test' ], // meta map
file(params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.multi_intervals.bed', checkIfExists: true),
2
]
"""
}
}

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

}
41 changes: 41 additions & 0 deletions modules/nf-core/bedtools/split/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"test-bedtools-split": {
"content": [
{
"0": [
[
{
"id": "test"
},
[
"test.00001.bed:md5,d58e5e46c2fcc3b8be5db0f023e93cb5",
"test.00002.bed:md5,03caf952e9297a54620d2bbba8dc2823"
]
]
],
"1": [
"versions.yml:md5,33e0d5f886b7f0ed6f9c3e19b049357f"
],
"beds": [
[
{
"id": "test"
},
[
"test.00001.bed:md5,d58e5e46c2fcc3b8be5db0f023e93cb5",
"test.00002.bed:md5,03caf952e9297a54620d2bbba8dc2823"
]
]
],
"versions": [
"versions.yml:md5,33e0d5f886b7f0ed6f9c3e19b049357f"
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.4"
},
"timestamp": "2024-08-26T13:50:28.137857"
}
}
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ bedtools/intersect:
bedtools/makewindows:
- modules/nf-core/bedtools/makewindows/**
- tests/modules/nf-core/bedtools/makewindows/**
bedtools/split:
- modules/nf-core/bedtools/split/**
- tests/modules/nf-core/bedtools/split/**
bedtools/unionbedg:
- modules/nf-core/bedtools/unionbedg/**
- tests/modules/nf-core/bedtools/unionbedg/**
Expand Down
16 changes: 0 additions & 16 deletions tests/modules/nf-core/bedtools/split/main.nf

This file was deleted.

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

This file was deleted.

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

This file was deleted.

0 comments on commit 6dc8a32

Please sign in to comment.