Fork me on GitHub
#cursive
<
2021-11-04
>
GGfpc18:11:14

In cursive, when I left click a test and click run-test-in-repl what exactly is happening under the hood?

cfleming08:11:59

Do you mean that you put the caret inside a test and then use REPL-&gt;Run ‘some-test’ in REPL? If so, Cursive works out the var for the test you’re in, and then sends some code which is roughly equivalent to https://github.com/clojure/clojure/blob/b8132f92f3c3862aa6cdd8a72e4e74802a63f673/src/clj/clojure/test.clj#L797-L830 (but predates it so doesn’t use it)

GGfpc17:11:24

Is there a way I can call that from the repl instead of having to right click?

GGfpc17:11:45

Like calling (run-test my-test-name)

cfleming00:11:53

No, this would require communication from the REPL server to the IDE, which is something I have planned but isn’t there yet.