On Friday, December 27, 2013 11:55:31 PM UTC+5:30, Marc R. Hoffmann wrote:
> Hi,
> 
> 
> 
> I'm not sure whether I understand your question. It sounds like you're 
> 
> using the JaCoCo Jenkins plug-in. This is a separate project, please 
> 
> check this page to find support: 
> 
> https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin
> 
> 
> 
> Cheers,
> 
> -marc
> 
> 
> 
> On 27.12.13 08:08, [email protected] wrote:
> 
> > I have an requirement to do a code coverage in this case I choosed Jacoco 
> > and i new to it . I need a solution to see the no of source code covered in 
> > a dev project , when i run my selenium test project .
> 
> >
> 
> > To be more clear
> 
> >
> 
> > I do have an selenium test project so whenever i run a selenium test , each 
> > test covers some scenario which is actually created in dev project which 
> > need to be captured .
> 
> >
> 
> > To achieve this i created an Jenkins job , added a plugin in Jenkins for 
> > publishing jacoco coverage report wherein I point to classes directory of 
> > dev project , and also source directory pointing to dev project and path to 
> > exec files as /target/.exec
> 
> >
> 
> > I tried running a selenium test to see the code coverage with respect to 
> > dev project.but although the coverage report of Jacoco jenkins plugin 
> > showed all the packages of dev project , it didn't show the no of lines 
> > covered in dev project .
> 
> >
> 
> > I am not sure if this approach is correct, please guide me if there is any 
> > apt solution for implementing this.
> 
> >
> 
> > Please let me if my question is not clear .Thanks in advance
> 
> >

Marc,

Thanks for your response 

yes i used Jacoco Jenkins plugin to get the coverage data published in Jenkins.

my current approach is, I added the Jacoco maven plugin in my pom.xml of my 
test project 

I created an Jenkins job which will run the test project to capture the amount 
of code coverage done for some scenario in test project with corresponding to 
the development stream code 

For eg : If i execute a selenium test for login scenario i need to check the 
code coverage for login functionality present in the development stream code
here test project refers to my selenium test project and development stream 
refers to the actual code representing the functionality (Login)

wherein the jenkins job consists of Jacoco Jenkins plugin to capture the 
coverage reports , below are the source path refered in jacoco jenkins plugin 

Path to exec files -> **/target/**.exec

Path to class directories -> class directory of development project 

Path to source directories -> source path for development project 

I am not sure if this approach will work fine and  apologize for making the 
explanation bit lengthy , also please provide your inputs or any suggesstions 




-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to