Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PikalaxALT opened this issue Nov 4, 2024 · 0 comments

Comments

@PikalaxALT
Copy link

PikalaxALT commented Nov 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant