flow-storm / clofidence

Bolster your Clojure test suite confidence
The Unlicense
46 stars 2 forks source link

Needs cognitect's test runner as a dependency #4

Closed jumarko closed 5 months ago

jumarko commented 5 months ago

If I try to execute clofidence via the deps.edn alias it fails with an error:

Could not locate cognitect/test_runner/api__init.class, cognitect/test_runner/api.clj or cognitect/test_runner/api.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

The solution seems to be adding the dependency to :extra-deps

  :clofidence {:classpath-overrides {org.clojure/clojure nil}
               :extra-deps {com.github.flow-storm/clojure {:mvn/version "LATEST"} ; >= 1.11.1-15
                            com.github.flow-storm/clofidence {:mvn/version "LATEST"}
                           io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}}
               :exec-fn clofidence.main/run
...
jumarko commented 5 months ago

I see that this is controlled via :test-fn argument. Closing.