testing

Testing tools, testing philosophy & methodology...
dottedmag 2018-09-22T17:48:27.000100Z

Are there coverage tools that do not require Leiningen? I have tried running cloverage from deps.edn, but all I got is

Loading namespaces:  ()
Test namespaces:  ()
Exception in thread "main" java.lang.RuntimeException: Cannot instrument namespaces; there is a cyclic dependency
– not really helpful.

dottedmag 2018-09-22T17:50:22.000100Z

Oh, nevermind, it just needs to be told where the source and tests are.

dottedmag 2018-09-22T17:55:21.000100Z

For the reference, that's how it works:

:cover
  {:extra-deps {cloverage {:mvn/version "1.0.13"}}
   :extra-paths ["test"]
   :main-opts ["-m" "cloverage.coverage" "-p" "src" "-s" "test"]}