Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

how to use cobertura with jenkins?

 
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, to find out your code coverage you usually run unit tests.
 
Punit Jain
Ranch Hand
Posts: 1143
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic