-
Notifications
You must be signed in to change notification settings - Fork 93
Add Cask and ert-runner. Tests refactoring. #112
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
Conversation
Great contributions! I will probably not be able to get to fully reviewing & merging this until late tomorrow (so about 36 hours maybe). But it looks awesome. Refs #88 |
Ok one issue here is that when there's a test failure, I want to see the Actual vs. Expected buffer. If I force a deliberate failure (by deleting a few letters or moving spaces around, etc.) and run A must for me as I'm working through issues is being able to run failing tests in a fresh copy of emacs, and this setup seems like a step backward in that regard. Am I doing something wrong or missing something? That aside I like this setup MUCH better. The only thing I'd change is making a |
Due to the nature of these changes, the excellent documentation you've included with this pull request should be added to CONTRIBUTING.md. Also, another thing that needs to be added to that document is the steps for installing evm. |
After consulting with people in #emacs, I think the answer is that falling back to running tests interactively isn't a thing you can do with I really want a way to fall back automatically to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I don't think &define
is a valid keyword here. I know you didn't add it, but I'm hacking on ert-runner.el
to see about falling back to an interactive test session.
When I run ert-runner
(after adding (setq ert-runner-exit t)
in test-runner.el
), I get the following error:
matt@matt-x230:/opt/emacs-elixir$ cask exec ert-runner --verbose
Running tests on Emacs 24.4.50.2
Warning: Unknown macro property &define in elixir-deftest
Wrong type argument: stringp, nil
I've looked around for this and from what I can tell this param is only accepted in Edebug specifications. cl-defmacro
only takes &rest
, &optional
, and &key
. I'm not sure the genesis of this macro definition but I don't think it's right.
Again, I know this isn't part of your code necessarily (except the refactor) but I think a bug is being masked here. No action expected on your part, this is a note to my future self (or other contribs).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe I just don't know what I'm talking about.
Ok I have spent a few hours with this stuff here and fetting familiar with commander, ert-runner, evm, etc., as well as the refactored code you've included. The test refactoring should be a separate pull request from the evm-related items. There are a couple bugs in the refactored code, which makes it difficult to tell how to start sorting out how to extend the implementation you have included here. |
I will try to find solution for this.
Yep!
Ok, I will close this PR and make two new. But it will take some time (about 1-2 days maybe). |
Thanks. I know it's kind of a pain but I think (hope) it will pay off in terms of maintainability down the road. |
@mattdeboard Good news! I was able to run test interactively with |
Oh? How? On my machine, emacs closes down immediately once the tests complete. |
Avoid crashing main server process in code lens request when uri is n…
Hi!
This commit adds support for Cask and changes some test related stuff.
Cask and ert-runner
Cask is a project management tool for Emacs Lisp to automate the package development cycle.
Installation
Examples of usage
Some other changes
run_tests
script was removed.elixir-deftest
.elixir-mode-run-tests
was removed.