Open vemv opened 3 years ago
Likely an oversight on our part. PR welcome!
@jeffvalk wrote the test middleware, so he might have more to say on the subject.
Any thoughts on this? This is exactly an issue that I have on some projects. I have some tests macros that juggle around report-counters and expects it to be valid, and when running tests with cider they don't work.
I appreciate that you found the right issue!
I could give it a try myself but can't strongly promise anything as time is quite scarce for me.
Might be a good "first PR".
Brief
I have the impression that test runners are expected to bind
clojure.test/*report-counters*
during test execution. It looks like it should be initialized toclojure.test/*initial-report-counters*
.cider.nrepl.middleware.test
doesn't appear to have this logic.Why this is a problem
inc-report-counter
is invoked: https://github.com/clojure-emacs/cider-nrepl/blob/ac0625fb095330e80ddcbcad9167655924799211/src/cider/nrepl/middleware/test.clj#L212clojure.test/*report-counters*
deftest
-like macro that ensured that*report-counters*
was incremented after execution of that deftest.cider-nrepl version
This repo @
master