-
Notifications
You must be signed in to change notification settings - Fork 6
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
Specify a target filepath for included files #9
Comments
Hi @LukeMathWalker Yes I'd absolutely love this functionality as I've run into this issue myself. Currently it will copy over, as you noticed, the path relative to the root into the temporary directory. This means if you want things to be just I'd accept a PR that would change
This would necessitate a 0.2 release but I don't mind doing that. If you have a PR I'm more than happy to review it and I appreciate you asking before just doing it. As some pointers as to what will need to change and I don't expect it to be easy:
|
I've been playing around with
assay
today for a side project and it has been 🔥The only thing I am struggling with, right now, is including files.
My project folder layout follows this structure:
test_name_1
is a test that lives inmodule_with_tests.rs
and I'd like to mount all files undertest_files/test_name_1
in the temporary directory created fortest_name_1
.This doesn't seem possible at the moment based on my understanding of the docs.
I can do:
while what I want is
Is there an easy layout that I could use to keep the files related to different tests separated? Would you be interested to support this functionality/review a PR for adding it?
Along the same lines, some kind of globbing would be quite handy - i.e. "mount all the files in this directory at the root of the temporary filesystem for the test".
The text was updated successfully, but these errors were encountered: