Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350292 - Provide unit test coverage results in builds
Summary: Provide unit test coverage results in builds
Status: RESOLVED FIXED
Alias: None
Product: Linux Tools
Classification: Tools
Component: Project (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.0   Edit
Assignee: Linux Distros Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 12:48 EDT by Andrew Overholt CLA
Modified: 2013-05-08 14:42 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Overholt CLA 2011-06-24 12:48:17 EDT
It would be helpful if Tycho builds and Hudson showed unit test coverage.  Dave, is this easy to do?
Comment 1 David Carver CLA 2011-06-24 12:57:14 EDT
(In reply to comment #0)
> It would be helpful if Tycho builds and Hudson showed unit test coverage. 
> Dave, is this easy to do?

Take a look at the the Minerva project, on GitHub, there is a sample on how to use ECLEmma to do this. 

Also take a look at the following page:

https://docs.sonatype.org/display/TYCHO/How+to+integrate+EMMA+(code+coverage)+with+Tycho

There are some people that have gotten Jaco to run with tycho as well.

I'm working on a profle that will enbable Cobertura to be used, but it's not ready yet (work stuff keeps getting in the way).

I have used the ECLEmma process with Turmeric and it works.  Be warned though that EMMA can cause some tests that normally pass to fail.   Thus why I'm looking at alternatives.
Comment 2 Alexander Kurtakov CLA 2013-02-19 04:30:29 EST
We have sonar setup now https://dev.eclipse.org/sonar/dashboard/index/org.eclipse.linuxtools:linuxtools-parent and it shows way more valuable information (incl code coverage). Closing.