-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
When running nf-test test with strict syntax enabled nextflow will raise an error.
For example, when running the workflow testing example in the docs:
Error .nf-test-5d50826d06304d04dbe864c5041a7425.nf:36:11: Unexpected input: '*'
│ 36 | trial(*input)
╰ | ^
This is because of the new strict syntax in nextflow 25.04.
To Reproduce
Create trial.nf and trial.nf.test as in the docs page linked above.
Run nf-test init, turn on strict syntax, then run nf-test test trial.nf.test.
Full Error
$ export NXF_SYNTAX_PARSER=v2
$ nft test trial.nf.test
🚀 nf-test 0.9.2
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr
Test Workflow Trial
Test [5d50826d] 'Should run without failures' FAILED (1.425s)
Assertion failed:
assert workflow.success
| |
workflow false
Nextflow stdout:
Error .nf-test-5d50826d06304d04dbe864c5041a7425.nf:36:11: Unexpected input: '*'
│ 36 | trial(*input)
╰ | ^
ERROR ~ Script compilation failed
-- Check '/home/nikolai/scratch/nftest/.nf-test/tests/5d50826d06304d04dbe864c5041a7425/meta/nextflow.log' file for details
Nextflow stderr:
Nextflow 25.09.0-beta is available - Please consider updating your version to it
FAILURE: Executed 1 tests in 1.431s (1 failed)Version Info
$ nft version
🚀 nf-test 0.9.2
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr
Nextflow Runtime:
>
> N E X T F L O W
> version 25.04.7 build 5955Metadata
Metadata
Assignees
Labels
No labels