-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Use test-var-query for all test commands #1424
Conversation
Seems to work in my simple test 😃 . I'm not sure if you're done with the changes yet, but if so, once the changelog is updated and vsix is tested I think we can merge. |
Remove use of deprecated Cider commands, in favour of the supported test-var-query. This fixes an issue with cljc conditionals impacting the ability to run tests. Fixes: BetterThanTomorrow#1328
This should be good merge @bpringe 👍 |
I'm not sure about how to move forward with this – this is a behaviour change - the |
Is it that the new op does not accept the |
Yup, that’s exactly it. |
I say, go for this. Your activities around this whole test story is improving things majorly and some behavior changes are inevitable. We can't afford to hang on to deprecated functionality. Maybe consider adding something to calva.io about that loading is a user responsibility? |
I'm not sure this actually changes behavior. For example, in version 2.0.228 of Calva,I have the following test code: (ns test-lein.core-test
(:require [clojure.test :as test :refer [deftest is]]))
(deftest test-1
(is true))
(deftest test-2
(is true)) and I do the following:
Whether I save the file or not at step 2, all tests continue to pass, even though I changed That last issue may be a problem with the refresh commands. I don't normally use them, but they don't seem to work as I expect in this case. My overall point is that currently it doesn't seem that changes are loaded before tests are run anyway, at least not in this lein project I'm testing with. I have to run the command to load the test file in order for changes in tests to be picked up. I thought that I've observed otherwise in the past though 🤔 . I tested also with a deps.edn project and observed the same behavior. |
Sounds like we should merge away then? |
What has Changed?
Remove use of deprecated Cider commands, in favour of the supported
test-var-query. This fixes an issue with cljc conditionals impacting the
ability to run tests.
Fixes: #1328
My Calva PR Checklist
I have:
dev
branch. (Or have specific reasons to target some other branch.)published
. (Sorry for the nagging.)[Unreleased]
entry inCHANGELOG.md
, linking the issue(s) that the PR is addressing.ci/circleci: build
test. NB: You need to sign in/up at Circle CI to find the Artifacts tab.Ping @PEZ, @bpringe