Cider seems to be evaluating and running tests in a specific namespace, but when I try running all tests, it says “No assertions (or no tests) were run….”
I loaded all the namespaces
but it still seems to say the same thing
however, if I run tests for a specific namespace, it works
am I doing something wrong?
I am running the latest snapshot.
1.1.0-20210408.1212
It seems like the relevant namespaces are definitely present in all-ns
I don’t remember this part of the code well anymore, so without checking it’s hard to say how it is support to work. Which command exactly are you using to run the tests?
two of them:
cider-test-run-all-tests
cider-test-run-loaded-tests
Wait, those are spacemacs ones
ok, even running the cider ones causes the same.
How does Cider determine what a project is? With Lein, I guess it uses project.clj. I am using tools.deps and just have a barebones deps.edn. Could this be the reason?
I’ll check this a bit later.
I don’t think we did anything with the project files, though - probably we just looked for a common ns prefix within all the loaded namespaces or something like this.
FYI - I’ve jut pushed cider-nrepl 0.25.11, that has a fix for the long-standing issue with the debugger state getting corrupted when debugging functions triggered by an HTTP request. We also have some important fixes lined up about working with Java sources and code completion with shadow-cljs, which we hope to ship with CIDER 1.1 in the weeks to come.
See https://github.com/clojure-emacs/orchard/blob/master/src/orchard/namespace.clj#L50
Perhaps this doesn’t work with deps.edn indeed. I have to admit I’ve never used it - I’ve always been a Lein user and never had a reason to look for something else.
Thanks @bozhidar