Conversation
|
| def species = meta.Species ?: "Unknown" | ||
| def qc_status = meta.QCStatus ?: "Unknown" | ||
| def has_file = mikro_file && mikro_file.size() > 0 ? "--has_mikro_file" : "" | ||
| def has_file = (mikro_file && mikro_file.name != 'NO_FILE') ? "--has_mikro_file" : "" |
There was a problem hiding this comment.
I believe the issue is with the path.size() when there is a single path in nextflow version 25 where it actually gives a 0/null
I noticed that the --has_mikro_file was not working in this version of nextflow so I am proposing an alternative approach.
There was a problem hiding this comment.
A much better approach!
tests/pipelines/main.nf.test
Outdated
| then { | ||
| assert workflow.failed | ||
| assert workflow.stdout.contains("ERROR ~ Argument of `file` function cannot be empty") | ||
| assert workflow.stdout.any { it =~ /ERROR ~ Argument of `file\(\)?` function cannot be empty/ } |
There was a problem hiding this comment.
Made the error message flexible as depending on the nextflow version it can be file() or file in the error message.
| then { | ||
| assert workflow.failed | ||
| assert workflow.stdout.contains("ERROR ~ Argument of `file` function cannot be empty") | ||
| assert workflow.stdout.any { it =~ /Argument of .* function cannot be empty/ } |
There was a problem hiding this comment.
Made it more flexible because regex was not working for both scenarios
kylacochrane
left a comment
There was a problem hiding this comment.
Thanks so much for getting typingQC aligned with nextflow v.25.10.4 Steven!
This all looks great!
| def species = meta.Species ?: "Unknown" | ||
| def qc_status = meta.QCStatus ?: "Unknown" | ||
| def has_file = mikro_file && mikro_file.size() > 0 ? "--has_mikro_file" : "" | ||
| def has_file = (mikro_file && mikro_file.name != 'NO_FILE') ? "--has_mikro_file" : "" |
There was a problem hiding this comment.
A much better approach!
Uh oh!
There was an error while loading. Please reload this page.