Skip to content

Commit eae10e4

Browse files
committed
Fix gitpod references
1 parent b67bbda commit eae10e4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docs/side_quests/nf-test.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ https://www.nf-test.com
188188

189189
Test Workflow main.nf
190190

191-
Test [1d4aaf12] 'Should run without failures' FAILED (1.325s)
191+
Test [693ba951] 'Should run without failures' FAILED (4.652s)
192192

193193
Assertion failed:
194194

@@ -198,10 +198,17 @@ Test Workflow main.nf
198198

199199
Nextflow stdout:
200200

201-
ERROR ~ No such file or directory: /workspace/gitpod/hello-nextflow/hello-nf-test-part1/.nf-test/tests/1d4aaf120a1c8314a4310f6a54a0c243/greetings.csv
201+
ERROR ~ No such file or directory: /workspaces/training/side-quests/nf-test/.nf-test/tests/693ba951a20fec36a5a9292ed1cc8a9f/greetings.csv
202202

203-
-- Check '/workspace/gitpod/hello-nextflow/hello-nf-test-part1/.nf-test/tests/1d4aaf120a1c8314a4310f6a54a0c243/meta/nextflow.log' file for details
203+
-- Check '/workspaces/training/side-quests/nf-test/.nf-test/tests/693ba951a20fec36a5a9292ed1cc8a9f/meta/nextflow.log' file for details
204204
Nextflow stderr:
205+
206+
Nextflow 24.10.4 is available - Please consider updating your version to it
207+
208+
209+
210+
211+
FAILURE: Executed 1 tests in 4.679s (1 failed)
205212
```
206213

207214
The test fails! What happened?
@@ -228,7 +235,7 @@ then {
228235
Note how nf-test has reported the pipeline failed and provided the error message from Nextflow:
229236

230237
```console title="Error"
231-
ERROR ~ No such file or directory: /workspace/gitpod/hello-nextflow/hello-nf-test-part1/.nf-test/tests/1d4aaf120a1c8314a4310f6a54a0c243/greetings.csv
238+
ERROR ~ No such file or directory: /workspaces/training/side-quests/nf-test/.nf-test/tests/693ba951a20fec36a5a9292ed1cc8a9f/greetings.csv
232239
```
233240

234241
So what was the issue? Remember the pipeline has a greetings.csv file in the project directory. When nf-test runs the pipeline, it will look for this file, but it can't find it. The file is there, what's happening? Well, if we look at the path we can see the test is occurring in the path `./nf-test/tests/longHashString/`. Just like Nextflow, nf-test creates a new directory for each test to keep everything isolated. The data file is not located in there so we must correct the path to the file in the original test.

0 commit comments

Comments
 (0)