-
Notifications
You must be signed in to change notification settings - Fork 19
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
--dir bug #129
Comments
Hey @billychow68, good timing on this. Currently if you have non test suite files (in your case .sh) in the same directory that you're testing, commander will panic. If you remove the shell script and change your pathing it will work. I think we have two options:
Thank you again, if you have any thoughts please share them. |
Thanks @dylanhitt for the quick response. In my case, I think as the number of test suites and shell scripts increases it makes sense to organize them better by separating them. I've tried the following structures and both worked perfectly!
|
Can we improve something, i.e. documentation to the |
Hey @SimonBaeumer, I thought about this more. After #121 is closed I'll make a PR for the desired long term fix. I realized today that in order validate the entire I will open a PR for the help message for now. |
The documentation does not say too much about the actual limitations. Atm
The test file would look something like this, that it is enforced to always provide the complete path, realtive to the
A solution would be to execute the scripts relative to the
Additionally a template variable like Thoughts on this approach @dylanhitt? |
Currently when executing with In regards to providing a config for users to configure their asset directories I personally like the config route, essentially the prototype you provided. I personally like that it is more explicit and would provide plenty of flexibility for both relative and absolute pathing. We may want to open another issue to address this specifically. |
Where does this happen? I tried it yesterday and did not get any error if I store other files into the directory tree. |
@billychow68 provided a pretty nice zip file for this. I think you're storing files into a subdir which will currently be skipped. Take a look at this line. To summarize if you're testing a directory with any invalid file extension or invalid config in the same directory being tested we currently just panic. My thoughts on how to handle this issue are expressed in #131, as we need to validate the entire Let me know if you'd like any more info. I think a lot of the confusion is that we are addressing multiple different concerns in this thread. |
You are right! I did store my scripts inside in a sub-directory, makes sense! |
I think this can be closed now |
Prerequisites
Description
--dir flag doesn't work with commands with shell scripts
Steps to Reproduce
./commander test tests/test.yaml
Expected behavior: the test should pass
Actual behavior: the test passed
./commander test --dir tests/
Expected behavior: the test should pass
Actual behavior:
dir-bug.zip
Specifications
The text was updated successfully, but these errors were encountered: