Skip to content
Closed
Changes from all 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
33 changes: 33 additions & 0 deletions subworkflows/local/functional_annotation/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
nextflow_workflow {

name "Test Subworkflow functional_annotation"
script "../main.nf"
workflow "functional_annotation"

test("Should run functional annotation successfully") {

when {
workflow {
"""
input[0] = [
[ id:'test', single_end:false ], // meta map
file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
]
input[1] = false // skip_pfam
input[2] = [] // pfam_db
input[3] = "https://raw.githubusercontent.com/nf-core/test-datasets/multiqc/testdata/set_indices.txt"
input[4] = true // skip_funfam
input[5] = [] // funfam_db
input[6] = [] // funfam_latest_link
"""
}
}

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