Fork me on GitHub
#cider
<
2022-01-23
>
dgr22:01:57

I’m running the latest snapshot from ELPA (cider-20220121.1047), and running all tests (`cider-test-run-project-tests`) doesn’t seem to work. I have ensured that the test namespace is loaded and can run tests with cider-test-run-ns-tests just fine. But when I use cider-test-run-project-tests, I get “No assertions (or no tests) were run.” Is it a bug, or am I doing something boneheaded? I recently switched from Leiningen to using tools deps and I’m questioning everything. 🙂 This is also running on Emacs 28.0.91 pretest build from https://emacsformacosx.com/builds, if that might matter. Just fiddling around some more and cider-test-run-loaded-tests also fails with the same error.

vemv00:01:32

Thanks for the report! Could you open it as a github issue?

vemv00:01:54

as some quick debugging you can do: • type (all-ns) in a JVM repl • search for a ns named approximately orchard.query (the real name will be munged) • Invoke its namespaces function like this: (namespaces {:project? true :has-tests? true}). If it returns nothing, that's the problem :)

dgr01:01:53

(cider.nrepl.inlined-deps.orchard.v0v9v1.orchard.query/namespaces {:project? true :has-tests? true}) => ()

👀 1
dgr01:01:45

@U45T93RA6 Looks like that’s the issue. I’m happy to open a github issue. How do you want me to describe it for best capture of the root cause (which I don’t quite understand)?

vemv01:01:51

Yes an issue against https://github.com/clojure-emacs/orchard would be very appreciated If you can play a bit with that defn (and also cider.nrepl.inlined-deps.orchard.v0v9v1.orchard.namespace functions) and see which things do work, that would accelerate things. This is the namespace https://github.com/clojure-emacs/orchard/blob/master/src/orchard/query.clj try passing it different arguments per its docstring. These two functions also seem relevant https://github.com/clojure-emacs/orchard/blob/dfab99eb9ad4b7373044f8ed1b983992b25fbb1b/src/orchard/namespace.clj#L65-L72

vemv01:01:40

(probably without you diving a bit as suggested I won't be able to do much - this is the sort of stuff that is practically impossible to debug without a repl 😇)

vemv01:01:41

Another relevant one https://github.com/clojure-emacs/orchard/blob/dfab99eb9ad4b7373044f8ed1b983992b25fbb1b/src/orchard/namespace.clj#L127-L135 If it also returns empty, try removing in-project? and see if it makes a difference

dgr15:01:03

@U45T93RA6 Apologies, got caught up with other things yesterday. I’ll try this later today and open an issue against Orchard with the results.

🍻 1