Fork me on GitHub
#cider
<
2018-09-22
>
dottedmag16:09:28

How does Cider decide which tests to run in cider-test-run-project-tests? I have loaded all namespaces (both source code and test), and still when I press C-c C-t C-p I'm getting No assertions (or no tests) were run.. C-c C-t C-n runs tests for currently open namespace just fine.

dottedmag17:09:33

@dominicm Is it running in context of nrepl? How could I run it manually and see what it returns?

dominicm17:09:10

@dottedmag a version of that namespace exists in your project. It will be provided with cider. Beyond that completion will save you.

dottedmag17:09:49

> (require '[orchard.query])
FileNotFoundException Could not locate orchard/query__init.class or orchard/query.clj on classpath.  clojure.lang.RT.load (RT.java:463)
in REPL

dottedmag17:09:42

0.18.0snapshot, has anything changed recently?

dominicm18:09:31

@dottedmag it gets inlined to cider.blahblah.v20.orchard.query or something

dottedmag21:09:25

orchard.namespace/project-namespaces gives me (), because classpath contains relative paths for src and test, and project-namespaces filters entries against project-root (absolute path).

dottedmag21:09:50

This is for deps.edn project. I suppose for Lein/Boot/whatever these classpath entries are absolute paths.

dottedmag21:09:50

I might easily fix it there, but if there is an assumption that classpath entries are absolute paths, it will break somewhere else too.