Thanks to Andrew we’re now generating a test coverage report in Jenkins for
the katello on every PR and when code gets merged to master. We should be
able to track our code coverage over time using these reports and hopefully
it’ll improve our test coverage.

To view the coverage report for a PR, if you go to the test_katello_pr_core
job page, you should see a new icon on the left with the caption “Rcov
report”. If you click on that you should see a coverage report like this:

<http://ci.theforeman.org/job/test_katello_pr_core/2908/database=postgresql,ruby=2.2/rcov/>
http://ci.theforeman.org/job/test_katello_pr_core/2908/database=postgresql,ruby=2.2/rcov/

We’re still tweaking the settings—like right now it seems to only show
coverage for foreman files.

One thing to note is that if you see the following error when your job runs
in Jenkins, you may need to rebase against master:

<https://gist.github.com/daviddavis/17e7b09588180e121502cbe1cb63fdd7>
https://gist.github.com/daviddavis/17e7b09588180e121502cbe1cb63fdd7

*tl;dr - rebase your katello PRs!*

David

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" 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/d/optout.

Reply via email to