tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Eamonn Sullivan 2020-10-11T13:59:44.332Z

Hi all. I have a real newbie question on deps.edn. I have the following to add cloverage to my project.

:cloverage
  {:extra-paths ["test"]
   :extra-deps {cloverage/cloverage {:mvn/version "RELEASE"}}
   :main-opts ["-m" "cloverage.coverage"
               "-p" "src"
               "-s" "test"
               "--fail-threshold" "90"]}
The cloverage docs say I should be able to provide a map of options somewhere, like using :fail-threshold instead of the args. How would I do that?

alexmiller 2020-10-11T14:16:42.333100Z

I don’t think this is a deps.edn question, not sure how cloverage works

Eamonn Sullivan 2020-10-11T14:18:09.334Z

Ah, ok, sorry. I thought there was a key I could set like :options {:fail-threshold 90}. Told you it was a newbie question!

tvaughan 2020-10-13T15:50:08.347100Z

$ cat tests.edn
#kaocha/v1
{:plugins [:kaocha.plugin/cloverage
           :noyoda.plugin/swap-actual-and-expected]
 :cloverage/opts {:fail-threshold 100}}

tvaughan 2020-10-13T15:51:42.347500Z

@eamonn.sullivan ☝️

Eamonn Sullivan 2020-10-13T15:52:12.347700Z

Ah, thank you. Perfect!

Eamonn Sullivan 2020-10-11T14:19:28.334700Z

You can set project default settings for Cloverage in your project. That's all they mention in the docs and I have no idea that means, either. I'll just use the command-line arguments.

alexmiller 2020-10-11T14:20:34.335300Z

Yeah, don’t know offhand

lread 2020-10-11T14:27:19.336600Z

@eamonn.sullivan, I don’t know have active it is, but there is a #cloverage channel.

👍 1
practicalli-john 2020-10-11T17:34:05.339400Z

@eamonn.sullivan kaocha test runner can also use cloverage too. I have aliases for both, but I don't think I used options yet. Will give them a try and interested to know how you get on https://practicalli.github.io/clojure-webapps/