-
Notifications
You must be signed in to change notification settings - Fork 175
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
test-var-query does not run tests with +
in the name
#730
Comments
My guess is that |
I've tested If you pass a Does that make sense, @bpringe ? |
Ah, yes that does make sense. Thanks! I'll close this, then. |
Per clojure-emacs/cider-nrepl#730, clients should make sure that queries are escaped. We can use the `escape-string-regexp` package, which is already in the source-tree for this. Also, change the call to `test-var-query` to narrow the search to just `test?` true, and remove `search-property`, since `name` is the default per the Cider docs. Fixes BetterThanTomorrow#1383
Per clojure-emacs/cider-nrepl#730, clients should make sure that queries are escaped. Added a function to utilities.ts to do this. Also, change the call to `test-var-query` to narrow the search to just `test?` true, and remove `search-property`, since `name` is the default per the Cider docs. Fixes BetterThanTomorrow#1383
Expected behavior
Tests with
+
in the name are run successfully.Actual behavior
Tests with
+
in the name are not run successfully.Steps to reproduce the problem
Please see this Calva issue here for details: BetterThanTomorrow/calva#1383.
It seems that if a
+
is in the middle of the test name, the test isn't found. If the+
is at the beginning of the test name, an exception is thrown in the repl.In Calva, we send the test as below, and I verified that
test
has the appropriate test name - that it was not altered by Calva before being send to cider-nrepl.Environment & Version information
cider-nrepl version
0.26.0
Java version
Operating system
MacOS Monterey
The text was updated successfully, but these errors were encountered: