Skip to content

Commit 5256459

Browse files
committed
Add note on verbose
1 parent eae10e4 commit 5256459

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/side_quests/nf-test.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,37 @@ SUCCESS: Executed 1 tests in 1.626s
289289

290290
Success! The pipeline runs successfully and the test passes. Run it as many times as you like and you will always get the same result!
291291

292+
By default, the Nextflow output is hidden, but to convince yourself that nf-test is definitely running the workflow, you can use the `--verbose` flag:
293+
294+
```bash
295+
nf-test test tests/main.nf.test --verbose
296+
```
297+
```console title="Pipeline runs all processes"
298+
> nf-test test tests/main.nf.test
299+
300+
🚀 nf-test 0.9.2
301+
https://www.nf-test.com
302+
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr
303+
304+
305+
Test Workflow main.nf
306+
307+
Test [693ba951] 'Should run without failures'
308+
> Nextflow 24.10.4 is available - Please consider updating your version to it
309+
> N E X T F L O W ~ version 24.10.0
310+
> Launching `/workspaces/training/side-quests/nf-test/main.nf` [zen_ampere] DSL2 - revision: bbf79d5c31
311+
> [2b/61e453] Submitted process > sayHello (2)
312+
> [31/4e1606] Submitted process > sayHello (1)
313+
> [bb/5209ee] Submitted process > sayHello (3)
314+
> [83/83db6f] Submitted process > convertToUpper (2)
315+
> [9b/3428b1] Submitted process > convertToUpper (1)
316+
> [ca/0ba51b] Submitted process > convertToUpper (3)
317+
PASSED (5.206s)
318+
319+
320+
SUCCESS: Executed 1 tests in 5.239s
321+
```
322+
292323
## 1.3. Add assertions
293324

294325
A simple check is to ensure our pipeline is running all the processes we expect and not skipping any silently. Remember our pipeline runs 6 processes, one called `sayHello` and one called `convertToUpper` for each of the 3 greetings.

0 commit comments

Comments
 (0)