Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350292

Summary: Provide unit test coverage results in builds
Product: [Tools] Linux Tools Reporter: Andrew Overholt <overholt>
Component: ProjectAssignee: Linux Distros Inbox <linux.distros-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, d_a_carver
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard:

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.