-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix: eask options should not be passed to buttercup #281
Fix: eask options should not be passed to buttercup #281
Conversation
👍
You are right. It's weird that
I don't think it's needed since those bugs are probably from buttercup itself and not from Eask. For example, I have been testing Elsa in the past, but eventually, I had to get rid of it (see https://github.com/emacs-eask/cli/blob/master/test/commands/local/run.sh#L103) due to its instability. 🤔 |
So keep or remove the existing warning? Maybe keeping it would prevent github issues from nosy people like me ;) |
I prefer to remove it since making some noise can cause more people's attention. 🤔 But I guess reporting an error has the same effect. Let’s keep it and add a comment linking to this PR, so I can easily find and remember the reason behind this code. 😉 |
Done! Turns out it was pretty easy to check for both types of paths anyway. Also changed the warning message to include the specific path, just in case multiple paths were given. > ~/git/eask-cli/bin/eask test buttercup ../ert
Buttercup cannot run in parent directory: ../ert |
Thank you! Merged! :D |
E.g. before
Fixed by setting
command-line-args-left
to the result ofeask-args
before callingbuttercup-run-discover
.Another weird bug I noticed was that directories that are not children of the current directory are treated like empty directories.
Buttercup always fails, reporting 'No suites defined', even if there are test suites there. This can be kind of confusing, so I added an error for if the user tries to do this using
../
.E.g.
However, this is also a problem when using an absolute directory that is not a child too
You get this output even if there are buttercup tests in
/path/to/something
If you want, I can test absolute paths too (i.e. check that every argument is on the load path/is reachable from the current directory), but I thought it might be a bit obscure? What do you think, is it worth checking?