Fork me on GitHub
#cloverage
<
2022-02-10
>
fabrao10:02:33

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?

fabrao17:02:00

in the code, not in the report

lread18:02:34

@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?

fabrao18:02:16

thank you for information, the yellow part I don´t know why too. Sorry, I couldn´t find the explanation in README.

lread18:02:03

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.

seancorfield18:02:03

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")

lread18:02:15

Yeah, good points!