Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use cobertura with jenkins?

 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, to find out your code coverage you usually run unit tests.
 
Punit Jain
Ranch Hand
Posts: 1012
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
okay, let me try to configure junit and cobertura in my jenkins, will post again if i got any trouble.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic