[Haskell-cafe] Coverage icon on hackage

Mikolaj Konarski mikolaj at well-typed.com
Sat May 7 18:39:45 UTC 2022


Hi Ivan,

Was that icon just a part of a README? If not, could you
give a link?

In any case, people at the #hackage Matrix/IRC channel may
know about any plans to add that (#hackage is a shared room
for Hackage and related topics such as ghcup, cabal,
Stackage-Hackage interoperation, etc.; all are welcome).

Cheers,
Mikolaj

On Sat, May 7, 2022 at 7:31 PM Ivan Perez <ivanperezdominguez at gmail.com>
wrote:

> Hi all,
>
> What analysis does the hackage server run to determine the coverage level
> of, or rating given to, a particular package?
>
> For example, for one package it is showing this icon:
>
> https://img.shields.io/static/v1?label=Coverage&message=32%&color=red
>
> What does that actually mean? The build log states:
> Code Coverage
> expressions 32% (224/684)
> booleanguards 100% (0/0)
> conditions 20% (1/5)
> qualifiers 100% (0/0)
> alternatives 27% (5/18)
> local declarations 40% (6/15)
> top-level declarations 32% (29/90)
>
> Is it possible to see details of how hackage is arriving to these
> conclusion, and to replicate these results locally?
>
> Thanks,
>
> Ivan
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20220507/ad4787c4/attachment.html>


More information about the Haskell-Cafe mailing list