askimed / nf-test

Simple test framework for Nextflow pipelines
https://www.nf-test.com
MIT License
146 stars 25 forks source link

nf-test workflow generate incorrectly detects multiple workflows in some cases #270

Open PikalaxALT opened 3 weeks ago

PikalaxALT commented 3 weeks ago

when:

workflow MyWorkflow {
  // ...
  workflow.onComplete {
    //
  }
}

then: nf-test generate workflow main.nf --> "Detected more than one workflow"

when:

workflow MyWorkflow {
  // ...
}

workflow { // entrypoint
  MyWorkflow ()
}

then: nf-test generate workflow main.nf --> "Detected more than one workflow"

In both cases, the expected behavior is to select the one and only named workflow in the file for test generation.