Skip to content

Commit ec57c62

Browse files
debugging nf-test input file not found
1 parent 8b2d211 commit ec57c62

File tree

3 files changed

+30
-29
lines changed

3 files changed

+30
-29
lines changed

nf-test.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config {
2-
// Location of nf-tests
2+
// Location of nf-tests
33
testsDir "."
44

55
// nf-test directory used to create temporary files for each test

tests/handle_data.nf.test

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
nextflow_workflow {
3+
4+
name "Test Workflow HANDLE_DATA"
5+
script "../workflows/handle_data.nf"
6+
workflow "HANDLE_DATA"
7+
8+
test("Test reproducibility of data handling") {
9+
10+
when {
11+
workflow {
12+
"""
13+
input[0] = Channel.fromPath(params.csv)
14+
input[1] = Channel.fromPath(params.exp_conf)
15+
input[2] = Channel.of("TESTING")
16+
"""
17+
}
18+
}
19+
20+
then {
21+
22+
assert workflow.success
23+
24+
with(workflow.out.data) {
25+
assert size() == 2
26+
}
27+
}
28+
}
29+
}

tests/main.nf.test

-28
This file was deleted.

0 commit comments

Comments
 (0)