Description
Hey @bbatsov et al, hope you're all keeping well :)
Let me know if more information would be helpful, think this is my first CIDER bug report :)
Cheers,
James
Use the template below when reporting bugs. Please, make sure that you're
running the latest stable release or the latest snapshot/pre-release of
cider-nrepl
and that the problem you're reporting hasn't been reported (and
potentially fixed) already.
Expected behavior
If the namespace contains a test-ns-hook
function, cider-test-run-ns-tests
should call this instead of directly calling whatever test functions the namespace may contain
Actual behavior
It doesn't - in my case (because the namespace has no concrete tests) it fails with 'No assertions (or tests) were run. Did you forget to use is
in your tests?'
Steps to reproduce the problem
(ns foo.bar_test
(:require [clojure.test :as t])
(defn test-ns-hook []
(t/is (= 1 1)))
Calling (clojure.test/test-ns 'foo.bar-test)
directly does check the (= 1 1)
assertion.
Environment & Version information
Spacemacs develop
branch
;; CIDER 1.0.0snapshot (package: 20200916.1152), nREPL 0.7.0
;; Clojure 1.10.1, Java 1.8.0_265
[cider/cider-nrepl "0.25.3"]
Operating system
Arch Linux