Can I test a workflow under an alias? This seems p...
# nf-test
m
Can I test a workflow under an alias? This seems possible for the setup step (https://www.nf-test.com/docs/testcases/setup/?h=#3-aliasing-of-dependencies) but can I do it for the entire workflow under test? My configuration depends on that, hence my question.
✅ 1
m
I never tried that, but from a Nextflow point of view, a module is anything
it could be a modules, or a sub-workflow or a workflow
m
It works on the nextflow side. Just not sure how to do it in nf-test.
m
have you looked at the tests we have in modules
This works well in setup
Copy code
run("BWA_INDEX", alias: "BWA_INDEX_HUMAN") {
                script "../../bwa/index/main.nf"
I don't see why it shouldn't work for workflows if you manage to handle the input nicely
m