This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-11
Channels
- # announcements (1)
- # babashka (132)
- # beginners (52)
- # calva (46)
- # clj-kondo (8)
- # cljdoc (17)
- # clojure (13)
- # clojure-australia (1)
- # clojure-dev (3)
- # clojure-europe (4)
- # clojurescript (4)
- # cloverage (1)
- # conjure (22)
- # datomic (9)
- # emacs (2)
- # fulcro (16)
- # leiningen (5)
- # malli (26)
- # off-topic (16)
- # pathom (3)
- # portal (5)
- # reagent (10)
- # reitit (5)
- # rewrite-clj (1)
- # ring (1)
- # shadow-cljs (14)
- # spacemacs (6)
- # tools-deps (10)
- # vim (11)
- # vscode (1)
- # xtdb (10)
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?I don’t think this is a deps.edn question, not sure how cloverage works
Ah, ok, sorry. I thought there was a key I could set like :options {:fail-threshold 90}
. Told you it was a newbie question!
$ cat tests.edn
#kaocha/v1
{:plugins [:kaocha.plugin/cloverage
:noyoda.plugin/swap-actual-and-expected]
:cloverage/opts {:fail-threshold 100}}
Ah, thank you. Perfect!
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.
Yeah, don’t know offhand
@eamonn.sullivan, I don’t know have active it is, but there is a #cloverage channel.
@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/