-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathmain.nf.test
More file actions
38 lines (34 loc) · 1.58 KB
/
main.nf.test
File metadata and controls
38 lines (34 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
nextflow_workflow {
name "Test Subworkflow NORMALIZE"
script "../main.nf"
workflow "NORMALIZE"
test("test profile") {
when {
workflow {
"""
// Input 0: counts channel with meta and RCC files
input[0] = Channel.of([
[ id: 'test_sample' ], // meta map
[
file('https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanostring/RCC_files/salmon_01_01.RCC', checkIfExists: true),
file('https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanostring/RCC_files/salmon_02_02.RCC', checkIfExists: true),
file('https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanostring/RCC_files/salmon_03_03.RCC', checkIfExists: true),
file('https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanostring/RCC_files/salmon_04_04.RCC', checkIfExists: true)
]
])
// Input 1: samplesheet channel with meta and file
input[1] = Channel.of([
[ id: 'test_samplesheet' ], // meta map
file('https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/nanostring/samplesheets/samplesheet_test.csv', checkIfExists: true)
])
"""
}
}
then {
assertAll(
{ assert workflow.success},
{ assert snapshot(workflow.out).match() }
)
}
}
}