Open maxulysse opened 1 month ago
At the moment, each test uses its own work directory.
We could consider setting a work directory alias for each test suite or test case. This way, nf-test
would create a work directory under .nf-test/share/<workdir alias>
, allowing tests with the same work directory alias to reuse the directory.
What do you think?
That's already a good progress, but I'm guessing in such a case, if I have already the conda env it will be recomputed anyway, right? Maybe it's something that we can deal with using cachedir within https://www.nextflow.io/docs/latest/config.html#scope-conda
Running the tests for untar in the nf-core/modules repo, with the following command:
Four tests are launched:
test_untar
,test_untar_onlyfiles
,test_untar - stub
andtest_untar_onlyfiles - stub
.And I see four similar messages on my terminal with 4 different conda cache location.
Any recommendation on how to deal with this properly, and avoid re-creating conda env multiple time?