pspdfkit-labs / cobertura_cover Goto Github PK
View Code? Open in Web Editor NEWOutput test coverage information in Cobertura-compatible format
Output test coverage information in Cobertura-compatible format
When running mix test --cover
with cobertura_cover
enabled, the resulting XML file contains all relevant files/modules of my project, but all line_rate
and branch_rate
coverage metrics are reported as 0
:
However, when using the excoveralls
package (Hex) there is test coverage:
COV FILE LINES RELEVANT MISSED
0.0% lib/guru/repo.ex 3 0 0
0.0% test/support/channel_case.ex 41 3 3
100.0% test/support/conn_case.ex 42 3 0
75.0% test/support/model_case.ex 61 4 1
0.0% web/channels/user_socket.ex 37 0 0
0.0% web/controllers/auth_controller.ex 40 14 14
0.0% web/controllers/image_controller.ex 7 1 1
100.0% web/controllers/page_controller.ex 7 1 0
0.0% web/controllers/server_controller.ex 7 1 1
100.0% web/controllers/service_controller.ex 13 3 0
...
[TOTAL] 44.9%
Am I missing something, or does cobertura_cover
not work with recent Elixir versions anymore? I noticed the latest release is from March 2015, which is almost a year ago...
โ elixir -v
Erlang/OTP 18 [erts-7.2.1] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.2.2
I made a very simple project with a few functions returning only a static value, like a number. I created doctests for some and regular ExUnit tests for others. Neither in the generated xml nor in the html files do any lines appear as covered.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.