Skip to content

Commit

Permalink
debugging nf-test input file not found
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiovignoli committed Jun 7, 2024
1 parent 8b2d211 commit ec57c62
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion nf-test.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
config {
// Location of nf-tests
// Location of nf-tests
testsDir "."

// nf-test directory used to create temporary files for each test
Expand Down
29 changes: 29 additions & 0 deletions tests/handle_data.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

nextflow_workflow {

name "Test Workflow HANDLE_DATA"
script "../workflows/handle_data.nf"
workflow "HANDLE_DATA"

test("Test reproducibility of data handling") {

when {
workflow {
"""
input[0] = Channel.fromPath(params.csv)
input[1] = Channel.fromPath(params.exp_conf)
input[2] = Channel.of("TESTING")
"""
}
}

then {

assert workflow.success

with(workflow.out.data) {
assert size() == 2
}
}
}
}
28 changes: 0 additions & 28 deletions tests/main.nf.test

This file was deleted.

0 comments on commit ec57c62

Please sign in to comment.