-
-
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
cider-test-run-tests fails to run tests unless tests are in a -test.clj file #784
Comments
The current approach is admittedly imperfect; it just accommodates the most common naming convention. Perhaps non-existence of a |
That would work for me, as it just disables the convenience of running tests from an implementation namespace in this case. |
I think it would be useful to have a config option to specify a way to map to and vice-versa. I can imagine this being done using some kind of pattern string, perhaps a regex. Ideally it would have presets available for common conventions such as the current default and the leiningen default and a way to specify a custom pattern. |
Perhaps. We tried to do something similar in Anyways, we'll think of something. |
+1 for being able to run the tests when in the test namespace. |
Seems to me the best (and simplest) idea would be simply to prompt the user for the matching namespace and remember it for future test runs. |
@hugoduncan Turned out we already had a way to customize this - |
I've also added prefix arg support for Generally, most people will probably just customize |
ok, fine but how do you customize it in the init.el ? I would like the same behavior as before : running the current test file with |
|
Looks good to me, although by doing this you won't be able to run the tests from ns they are related to. |
I agree, perhaps it should be more useful to run from the related ns. I did like this because the previous behavior ... |
Hi, I'm trying to set my Thanks, and sorry for the basic question. |
When trying to run clojure.test tests in a namespace that doesn't end in
-test
,cider-test-run-tests
tries to locate the namespace named by the current buffer with-test
appended.This makes it unusable in such buffers.
leiningen
's tests do not follow this expected naming scheme for example.The text was updated successfully, but these errors were encountered: