-
Notifications
You must be signed in to change notification settings - Fork 42
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
Access files in parent directory to a repo #205
Comments
Unfortunately is not possible to use files that are not in your crate. I'll try to fix it in the next days or maybe weeks is much more realistic. Absolute path should not work either but you can try with a link.... it could works. |
Thanks for getting back to me. I tried this with a symlink also, that didn't work either. |
If you could walk me through how to fix / debug this, I would love to contribute to your repo. This is something really nice that needs to be more popular for Rust tooling. |
Thx! I really appreciate your help... but I've just started to fix it. The real issue here is not to find where is the bug but understand how to define a correct behavior for these cases: every case use the file path also to build the test name to make it simple to identify what are the files involved in the failed tests. So, I cannot use the absolute path to build the tests name and every strategy that involve some kind of shrinking is wrong for some use cases. Maybe the best is to use a path relative to crate folder but the |
I very much think that this is backwards ... the test_inputs should be a submodule of the test code ... not the other way around. I don't think that this should be supported by rstest. |
Ok ... |
0.18.2 published |
Great! Thanks for your work. Is it possible, btw, to customize the test case names? Right now, the way we've set things up gives us really similar test case names, since we have multiple nested data directories. I'd like to say "hey, generate the test case names only from the last 3 segments of the path" or something. |
Ok, |
I'm trying to use files in a folder in the root level of a repository, while the tests are in a submodule.
I'm unable to use
#[files("../test_inputs/")
in thelib.rs
file so I can glob the particular files I want intest_inputs
, but so far, I have only been getting errors related to how Icannot remove prefix path
. I tried giving an absolute path as well (I'd really prefer to not do this), and that didn't work either. What choices do I have here?The text was updated successfully, but these errors were encountered: