aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes how to use cobertura with jenkins? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "how to use cobertura with jenkins?" Watch "how to use cobertura with jenkins?" New topic
Author

how to use cobertura with jenkins?

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
    
    2
hi i want to configure cobertura with jenkins, and use that, can ayone tell me what are the steps i need to follow?
i have installed jenkins-cobertura plugin, but i don't know how to use that, can anyone please help me in this?
i followed this link to install the plugin in jenkins:
https://wiki.jenkins-ci.org/display/JENKINS/Cobertura+Plugin

Also i wanted to know, i have installed jenkins, now i have stopped that and shut down my machine, now i again want to start jenkins, do i need to again run that war file?
this will recreate the .jenkins directory.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

You provide a link to the Cobertura plugin. Did you read that page? (In general, plugin configuration information will show up in two places: under Manage Jenkins | Configure System, and in job configuration. And next to the plugin-specific config items there will be a (?) button that you can click to view help on that field.)

Yes, you need to start Jenkins again. No it will not recreate the .jenkins directory, it will simply use what is there already. (By the way, you can set up Jenkins as a service so that it will start automatically)


JBoss In Action
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
    
    2
Thank you Peter.
but i have one doubt, although cobertura is used for code coverage, so to know how much code is covered by test cases, i need to first use junit with jenkins, isn't it?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Yes, to find out your code coverage you usually run unit tests.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
    
    2
okay, let me try to configure junit and cobertura in my jenkins, will post again if i got any trouble.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use cobertura with jenkins?