Skip to content

Commit

Permalink
Add nf-test to minimap2 index (nf-core#5189)
Browse files Browse the repository at this point in the history
* Add nf-test to minimap2 index

* correct tags

* remove pytest

* remove quotation marks
  • Loading branch information
fellen31 authored Mar 19, 2024
1 parent 624e8cd commit 176c11c
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 28 deletions.
32 changes: 32 additions & 0 deletions modules/nf-core/minimap2/index/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
nextflow_process {

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

tag "modules"
tag "modules_nfcore"
tag "minimap2"
tag "minimap2/index"

test("minimap2 index") {

when {
process {
"""
input[0] = [
[ id:'test' ],
file(params.modules_testdata_base_path + 'genomics/sarscov2/genome/genome.fasta', checkIfExists: true)
]
"""
}
}

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

}

}
68 changes: 68 additions & 0 deletions modules/nf-core/minimap2/index/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions modules/nf-core/minimap2/index/tests/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minimap2/index:
- modules/nf-core/minimap2/index/**
3 changes: 0 additions & 3 deletions tests/config/pytest_modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1361,9 +1361,6 @@ minia:
miniasm:
- modules/nf-core/miniasm/**
- tests/modules/nf-core/miniasm/**
minimap2/index:
- modules/nf-core/minimap2/index/**
- tests/modules/nf-core/minimap2/index/**
miniprot/align:
- modules/miniprot/align/**
- tests/modules/miniprot/align/**
Expand Down
12 changes: 0 additions & 12 deletions tests/modules/nf-core/minimap2/index/main.nf

This file was deleted.

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

This file was deleted.

8 changes: 0 additions & 8 deletions tests/modules/nf-core/minimap2/index/test.yml

This file was deleted.

0 comments on commit 176c11c

Please sign in to comment.