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.Oh, nevermind, it just needs to be told where the source and tests are.
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"]}