cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
craftybones 2021-04-12T07:39:35.238100Z

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….”

craftybones 2021-04-12T07:39:45.238400Z

I loaded all the namespaces

craftybones 2021-04-12T07:39:59.238900Z

but it still seems to say the same thing

craftybones 2021-04-12T07:40:10.239300Z

however, if I run tests for a specific namespace, it works

craftybones 2021-04-12T07:41:27.239500Z

am I doing something wrong?

craftybones 2021-04-12T07:48:01.239700Z

I am running the latest snapshot.

craftybones 2021-04-12T07:48:31.240100Z

1.1.0-20210408.1212

craftybones 2021-04-12T07:55:28.240400Z

It seems like the relevant namespaces are definitely present in all-ns

bozhidar 2021-04-12T07:59:25.241200Z

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?

craftybones 2021-04-12T08:00:17.241700Z

two of them:

cider-test-run-all-tests

craftybones 2021-04-12T08:00:29.242300Z

cider-test-run-loaded-tests

craftybones 2021-04-12T08:04:58.242800Z

Wait, those are spacemacs ones

craftybones 2021-04-12T08:05:32.243200Z

ok, even running the cider ones causes the same.

craftybones 2021-04-12T08:13:18.243900Z

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?

bozhidar 2021-04-12T11:59:03.244300Z

I’ll check this a bit later.

bozhidar 2021-04-12T11:59:42.245100Z

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.

bozhidar 2021-04-12T12:01:42.247400Z

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.

❤️ 3
bozhidar 2021-04-12T12:47:13.247800Z

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.

craftybones 2021-04-12T16:59:00.248600Z

Thanks @bozhidar