Fork me on GitHub
#cider
<
2021-04-12
>
craftybones07:04:35

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

craftybones07:04:45

I loaded all the namespaces

craftybones07:04:59

but it still seems to say the same thing

craftybones07:04:10

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

craftybones07:04:27

am I doing something wrong?

craftybones07:04:01

I am running the latest snapshot.

craftybones07:04:31

1.1.0-20210408.1212

craftybones07:04:28

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

bozhidar07:04:25

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?

craftybones08:04:17

two of them:

cider-test-run-all-tests

craftybones08:04:29

cider-test-run-loaded-tests

craftybones08:04:58

Wait, those are spacemacs ones

craftybones08:04:32

ok, even running the cider ones causes the same.

craftybones08:04:18

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?

bozhidar12:04:13

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.

bozhidar11:04:03

I’ll check this a bit later.

bozhidar11:04:42

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.

bozhidar12:04:42

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.

❤️ 8