Skip to content

Conversation

@prototaxites
Copy link

Hi, thanks for the fantastic software!

We are running into a small problem with nf-test where we are including the cleanup block in tests. The cleanup block is always executed, which means that exceptions thrown in the block stop the dry run - we are running into this problem with this test (https://github.com/sanger-tol/nf-core-modules/blob/main/modules/sanger-tol/hiccramalign/minimap2align/tests/main.nf.test) where we are using some functions from nft-utils to cleanup a temporary modules library that is initialised in the setup block.

This PR just moves the cleanup line into the section that checks if a dry run is being executed, which should side-step the problem. Not sure if this is the optimal way to do this, so happy to discuss :)

@lukfor
Copy link
Collaborator

lukfor commented Sep 30, 2025

Thanks! 🙏🏼

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

Successfully merging this pull request may close these issues.

2 participants