Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cobertura report format #14

Open
davidmoshal opened this issue Mar 30, 2012 · 10 comments
Open

Cobertura report format #14

davidmoshal opened this issue Mar 30, 2012 · 10 comments

Comments

@davidmoshal
Copy link

Am wondering how difficult it would be to produce a coverage reports using Cobertura's xml format?

Here is their XML report generating class:

http://www.devdaily.com/java/jwarehouse/cobertura-1.9/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java.shtml

@itay
Copy link
Owner

itay commented Mar 31, 2012

@davidmoshal do you have a sample output file or files you could put online? Ideally it would be an entire directory, so I can take a look at what the full format looks like.

It is possible we don't have all the info that they do (like methods/branches), but we can see what we have.

@davidmoshal
Copy link
Author

I do, for java, groovy and flex.
However, the documentation contains literally every line of my companies code!

Dave

On Fri, Mar 30, 2012 at 5:42 PM, Itay Neeman
[email protected]
wrote:

@davidmoshal do you have a sample output file or files you could put online? Ideally it would be an entire directory, so I can take a look at what the full format looks like.

It is possible we don't have all the info that they do (like methods/branches), but we can see what we have.


Reply to this email directly or view it on GitHub:
#14 (comment)

@itay
Copy link
Owner

itay commented Apr 16, 2012

@davidmoshal sorry for the delayed reply!

Can you come up with an example with some test code so I can see what the output looks like?

@rpetrenko
Copy link

I am glad i've found this discussion. @itay here is DTD for the cobertural xml. It'd be great feature to include in cover, since xml reports can be inserted in such tools as Jenkins for example.

http://cobertura.sourceforge.net/xml/coverage-04.dtd

here is an example of actual xml report:

https://raw.github.com/jenkinsci/cobertura-plugin/master/src/test/resources/hudson/plugins/cobertura/coverage-with-data.xml

@itay
Copy link
Owner

itay commented Jun 6, 2012

@rpetrenko thanks for the link, that is useful. I've recently finished some other commitments, so I hope I'll have a few more cycles to spend on Cover in the near future!

Also, if you'd like to try your hand at this, feel free. Happy to provide guidance and accept a pull request :)

@davidmoshal
Copy link
Author

Nice! Being able to view node coverage in java coverage reporting tools will be awesome.

@preethinagashri
Copy link

Hi itay ,

Do we have anything that has come up on this ?

@itay
Copy link
Owner

itay commented Jan 15, 2013

@preethinagashri I took a look at Cobertura. There are two issues:

  1. I can't seem to find any documentation of their format.
  2. From trying to reverse engineer it, it seems they collect a lot of data at the byte code level for Java that we simply don't have available for JavaScript.

I'd rather spend time trying to make the Cover HTML reporter better, so let me know if there are features we should add.

@stevepeak
Copy link

This would be a great addition! Cobertura reports can be uploaded to codecov.io very easily too.

@itay is there a json export example you can show me? Thank!

@itay
Copy link
Owner

itay commented Sep 22, 2014

I don't have an example handy - I haven't run this in a while, unfortunately. It should be pretty easy to get one if you install the project though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants