This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-10
Channels
- # announcements (6)
- # architecture (2)
- # babashka (30)
- # beginners (90)
- # calva (21)
- # cider (22)
- # clj-kondo (27)
- # cljs-dev (7)
- # clojure (132)
- # clojure-europe (51)
- # clojure-nl (12)
- # clojure-norway (3)
- # clojure-spec (3)
- # clojure-uk (5)
- # clojurescript (69)
- # cloverage (9)
- # conjure (5)
- # core-async (54)
- # cursive (14)
- # datomic (34)
- # emacs (7)
- # fulcro (10)
- # graalvm (40)
- # graalvm-mobile (2)
- # gratitude (2)
- # improve-getting-started (1)
- # introduce-yourself (1)
- # jobs-discuss (61)
- # leiningen (5)
- # malli (6)
- # off-topic (59)
- # pathom (11)
- # polylith (38)
- # reagent (3)
- # reitit (3)
- # rewrite-clj (3)
- # shadow-cljs (53)
- # tools-build (35)
- # transit (8)
- # vim (62)
- # web-security (26)
- # xtdb (4)
hello all, in coverage html report, seeing in the namespace part, what is the color means? Green -> exist test for this, organge -> ? and red -> no test cover that function?
Hi @fabrao, I searched for green in the cloverage source https://github.com/cloverage/cloverage/blob/dba7d72547748cf494f2bbc784b8a70ed8d9901f/cloverage/src/cloverage/report/console.clj#L44-L51. Does that help?
@fabrao, yeah, the cloverage README should really cover this stuff.
Or maybe the report itself should include a legend?
Anyway, once you figure it out a git issue followed up with a PR would be a great contribution!
Soo… that’s the html report, yeah? Maybe having a peek at https://github.com/cloverage/cloverage/blob/master/cloverage/src/coverage.css in the cloverage project will give us hints?
covered
= #558B55
= green
not-covered
= red
partial
= orange
Not sure where that yellow is coming from… but does that lead you down the right path?
thank you for information, the yellow part I don´t know why too. Sorry, I couldn´t find the explanation in README.
Oh, neither could I! I went to the code. I was suggesting maybe you’d want to help others by adding an explanation once you figured it out.
It's interesting to see this come up as a discussion because whenever I've used any coverage tools over the years that use color, I've always just "assumed" red: bad, green: good, orange: meh/maybe/partial, but color isn't really a good way to communicate such things because a) some people are red-green colorblind and b) not all cultures automatically assume red: bad, green: good. (In China, red is associated with joy and good luck -- although green is "clean and contamination free")