This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-07
Channels
- # adventofcode (3)
- # announcements (6)
- # babashka (20)
- # beginners (53)
- # calva (11)
- # clj-kondo (11)
- # clojure (50)
- # clojure-argentina (4)
- # clojure-dev (1)
- # clojure-europe (14)
- # clojure-houston (1)
- # clojure-italy (2)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-seattle (3)
- # clojure-uk (13)
- # clojurescript (2)
- # cloverage (1)
- # code-reviews (4)
- # conjure (2)
- # cursive (5)
- # datalevin (4)
- # datascript (33)
- # datomic (16)
- # events (1)
- # graphql (10)
- # gratitude (1)
- # honeysql (6)
- # introduce-yourself (2)
- # jobs (1)
- # lsp (88)
- # malli (8)
- # off-topic (3)
- # other-languages (4)
- # polylith (3)
- # re-frame (16)
- # reagent (17)
- # reitit (3)
- # releases (2)
- # remote-jobs (1)
- # rewrite-clj (3)
- # shadow-cljs (3)
- # slack-help (2)
- # sql (36)
- # testing (31)
- # tools-deps (41)
- # xtdb (23)
The Test Explorer thing looks very interesting, but I don't see any tests pop up in the activity bar testing section. I have set calva.useTestExplorer to true. I am on WSL Ubuntu 20.04.
You’ll need to either open a test file to get clojure-lsp to index the file and find test, or run some tests to see them.
The API that VSCode provides makes the empty state pretty confusing.
@U0K592YDP are Test Explorer: Run all test
and similar vscode commands supposed to work with current experimental text explorer support?
This new functionality seems to work perfectly when I mouse-click the individual deftest
or test ns
, but mentioned commands don't work for me.
Similarly, there's Run Test
button (see enclosed picture) when I hover over test explorer's title. This button actually seems to run the tests, but it doesn't reflect the changes that I made into test's code. In order to apply my code changes I have to evaluate the modified deftest
first.
Do you have some tips about what workflow should I use if I want to use this new (beautiful!) explorer functionality, while not having to touch my mouse? Thanks!
Oh.. seems I can use Calva: Run All Tests
and it reflects the results in test explrorer.. nice. I still have to re-evaluate the modified tests first, but that's probably a feature, not a bug.
That's a great question. How much code should we evaluate when you hit ‘Run Test’ ? The Text Explorer code is sent a message with a list of the Test Items that you selected when you click Run Tests. We then need to take action. Currently we run the tests.
We could evaluate any namespaces that are included in the set of tests. Evaluating any more than that might be tricky?
Calva : Run Current Tests
actually seems to automatically reload that test's namespace before running the test :thinking_face:
Oh, and there are even Test:
prefixed commands 😄..