askimed / nf-test

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

Conda environment reuse #210

Open LouisLeNezet opened 2 months ago

LouisLeNezet commented 2 months ago

Hi, I've stumble on the following behaviour recently. When doing multiple test for a module with a conda profile. The nf-test seems to create a new conda environment for each test. Would it be possible to reuse the same environment ? The environments or containers (singularity, docker) could be created in the folder of the .nf-test with a hash code and reuse if the hash didn't change. This would allow faster tests.

nh13 commented 1 month ago

This would be helpful iterating on tests too.