@@ -16,7 +16,7 @@ nextflow_workflow {
1616
1717
1818 // TODO nf-core: Change the test name preferably indicating the test-data and file-format used
19- test("snap25 isoforms - bcl2 - ced9 ") {
19+ test("Test two input channels, one fasta record each ") {
2020
2121 when {
2222 params {
@@ -25,10 +25,45 @@ nextflow_workflow {
2525 workflow {
2626 """
2727 // TODO nf-core: define inputs of the workflow here. Example:
28- input[0] = Channel.of([
29- [ id:'test', single_end:false ], // meta map
28+ input[0] = Channel.fromList([
29+ [
30+ [ id:'T1024' ], // meta map
31+ file(params.pipelines_testdata_base_path + 'proteinfold/testdata/sequences/T1024.fasta', checkIfExists: true)
32+ ],
33+ [
34+ [ id:'T1026' ], // meta map
35+ file(params.pipelines_testdata_base_path + 'proteinfold/testdata/sequences/T1026.fasta', checkIfExists: true)
36+ ]
37+ ])
38+ """
39+ }
40+ }
41+
42+ then {
43+ assertAll(
44+ // { assert snapshot(workflow.out).match()},
45+ { assert workflow.success},
46+ //TODO nf-core: Add all required assertions to verify the test output.
47+ )
48+ }
49+ }
50+
51+ // TODO nf-core: Change the test name preferably indicating the test-data and file-format used
52+ test("Test single input fasta with 4 fasta records: snap25 isoforms - bcl2 - ced9") {
53+
54+ when {
55+ params {
56+ pipelines_testdata_base_path = "https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/"
57+ }
58+ workflow {
59+ """
60+ // TODO nf-core: define inputs of the workflow here. Example:
61+ input[0] = Channel.fromList([
62+ [
63+ [ id:'test' ], // meta map
3064 file(params.pipelines_testdata_base_path + 'proteinannotator/reference/snap25_isoforms_bcl2_ced9.fasta', checkIfExists: true)
31- ])
65+ ]
66+ ])
3267 """
3368 }
3469 }
0 commit comments