-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Cannot run tests defined with custom macro #3279
Comments
I assume you're not actually running CIDER 1.1.1, right? :-) |
I am afraid I am, actually :-\ I had not realized I am using such an old version. Will try the latest ... |
I have the same behavior with 1.5.0 |
Bit of an aside for @bbatsov - what's the point of Or alternatively worded - if no test-defining form is found, why not fall back to the current top-level form? It seems a perfectly CIDER-y thing to do i.e. trust the runtime. |
As noted in the docs:
I guess we can alternatively assume that the current top-level form is a test and try to run it. I can't exactly remember the reasoning around the current implementation, I assume it was mostly an artefact of the old days were we only support |
CIDER Now, it will run the first valid test found at point for:
Docs: https://docs.cider.mx/cider/testing/running_tests.html |
Expected behavior
Run tests, provided
cider-test-defining-forms
is customized for a custom test macroActual behavior
No assertions (or no tests) were run.Did you forget to use ‘is’ in your tests?
Steps to reproduce the problem
Include
def-my-test
incider-test-defining-forms
.Run test for
(def-my-test meaning-of-life 42)
with `C-c C-Macros sems to be OK, since I can run the test by hand :
Environment & Version information
CIDER version information
Include here the version string displayed when
CIDER's REPL is launched. Here's an example:
Lein / Clojure CLI version
Leiningen 2.9.1
Emacs version
27.1
Operating system
Ubuntu 22.04.1 LTS
Linux tp 5.15.0-56-generic #62-Ubuntu SMP
JDK distribution
openjdk version "17.0.5" 2022-10-18
OpenJDK Runtime Environment (build 17.0.5+8-Ubuntu-2ubuntu122.04)
OpenJDK 64-Bit Server VM (build 17.0.5+8-Ubuntu-2ubuntu122.04, mixed mode, sharing)
The text was updated successfully, but these errors were encountered: