What’s the current suggested method to test the ve...
# nf-test
a
What’s the current suggested method to test the versions output of a subworkflow which only uses processes with
topic
versions (thus no emitted versions channel)
m
We don‘t test for version outputs in subworkflows anymore. Only in modules and then handle them in pipelines.
party this 4
m
This, because updating modules is hell when subworkflows check versions
a
Hmm. I’m trying to test local subworkflows, and I want versions because I can’t/don’t run the module tests for nf-core modules in my pipeline repo, but I want to have a sense-check that my versions are reporting correctly. So I guess really the question is, how do we test topic versions?
m
workflow.out.findAll { key, val -> key.startsWith("versions") }
?
a
That works? I wouldn’t have expected topics channels to be in a workflows output like that
m
no idea 😅 it’s the first thing that comes to mind.
a
Ah guess I should just rtfm
🤣 1
m
That’ll work 😂
m
you need to add topics to the test