This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-23
Channels
- # announcements (7)
- # babashka (11)
- # babashka-sci-dev (1)
- # beginners (8)
- # biff (1)
- # calva (8)
- # chlorine-clover (3)
- # cider (9)
- # clj-kondo (16)
- # cljdoc (9)
- # clojure (79)
- # clojure-australia (1)
- # clojure-dev (5)
- # clojurescript (24)
- # data-science (3)
- # datomic (2)
- # emacs (54)
- # fulcro (1)
- # graalvm (1)
- # jobs (5)
- # lsp (25)
- # malli (7)
- # meander (10)
- # off-topic (44)
- # other-languages (8)
- # portal (10)
- # remote-jobs (1)
- # sci (1)
- # shadow-cljs (6)
- # vim (4)
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.
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 :)
(cider.nrepl.inlined-deps.orchard.v0v9v1.orchard.query/namespaces {:project? true :has-tests? true})
=> ()
@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)?
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
(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 😇)
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
@U45T93RA6 Apologies, got caught up with other things yesterday. I’ll try this later today and open an issue against Orchard with the results.