-
Notifications
You must be signed in to change notification settings - Fork 26
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
projectDir
references become invalid under nf-test
#99
Comments
Thanks for reporting this issue! Your feature request makes definitely sense and is on our todo list! Best, lukas. |
File staging is implemented in PR #130 and will be available in 0.8.1 |
@lukfor Thank you for implementing this very helpful feature! Unfortunately there is still one issue that limits its usefulness. It seems that #117 has now broken relative paths that rely on the current working directory. For example, I have test params that I load from a file in a The reason I'm leaving the feedback here instead of #117 is that using the new |
It took me a moment to find this issue, but I had this exact issue as well. We heavily use |
I've been using the project to great success over the last year (thank you!), so I'm surprised this is the first time I've encountered this issue, however in a pipeline I'm now writing tests for there are numerous references to files in a top-level
assets/
directory that contains tool configuration files, etc. In the past, I've been able to make the assumption that the working directory when the pipeline is executed is the one containingmain.nf
(andassets/
). Sincenf-test
doesn't change the working directory when it stages the test into.nf-test/<uuid>/meta
, those paths still work. However, when referring to those paths using the Nextflow$projectDir
variable, the test fails because those files don't exist in.nf-test/tests/<uuid>/meta/assets
since the new$projectDir
from Nextflow's perspective is.nf-test/tests/<uuid>/meta
.My feature request is that there is new field in
nf-test.config
, e.g.stage:
that would specify files and directories besidesbin/
andlib/
that should be copied or symlinked (default) to the test run directory. E.g.:I do currently have workaround, so this is by no means urgent, but it's annoying to have to remember to add it to all of my test files and seems to rely on a semi-internal detail (i.e.
$outputDir/../meta
):The text was updated successfully, but these errors were encountered: