Helpys
mix test --cover: total is less than the mathematical average
Hi, I’m wondering why the total is less than the mathematical average of the test coverage.
Anyone any idea?
Where do I lose the missing 1.87 percentage?
| Percentage | Module |
|---|---|
| 100.00% | OWL.Individual |
| 100.00% | SPARQLQuery.List |
| 100.00% | SEAAUtil.Database |
| 100.00% | SEAAUtil.QueryGenerator |
| 100.00% | SPARQLEndpoint |
| 100.00% | SPARQLQuery.Any |
| 100.00% | SEAAUtil.Ontology |
| 100.00% | RDFLiteral |
| 100.00% | SPARQLQuery.RDF.Literal |
| 100.00% | SPARQLQuery.RDF.IRI |
| 100.00% | OWL.Class |
| ----------- | -------------------------- |
98.13% | Total
Regards, Alain
Most Liked
josevalim
The missing 1.87% is so you keep your guards up and continue testing your code.
Just kidding.
If you can provide a way reproduce it, please open up a bug report in the Elixir repo. Thank you!
Helpys
Thanks for your answer.
I reported the issue. see mix test --cover: total is less than the mathematical average · Issue #8825 · elixir-lang/elixir · GitHub
Fl4m3Ph03n1x
The basic cover tool is (for us) quite inconsistent, a fact that is amplified by the lack of documentation on what metrics the tool uses (iirc, it only counts lines, but I have a few threads here talking about that).
We ended up moving to excoveralls which I strongly recommend if you want something more reliable.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










