Open
Description
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 to clojure.test/*initial-report-counters*
.
cider.nrepl.middleware.test
doesn't appear to have this logic.
Why this is a problem
- I found at least one instance where
inc-report-counter
is invoked:- problem being, without the binding that is a no-op: https://github.com/clojure/clojure/blob/57ac70c904e8250f0bd4e084272659aeeb8749c6/src/clj/clojure/test.clj#L314-L320
- i.e. there's effectively dead code in cider-nrepl, which is surely undesirable
- Also, the lack of this binding in a popular middleware precludes authors from designing testing macros that inspect
clojure.test/*report-counters*
- e.g., one could author a
deftest
-like macro that ensured that*report-counters*
was incremented after execution of that deftest.
- e.g., one could author a
cider-nrepl version
This repo @ master