Rcov report index file not found in jenkins

I am trying to set up a rails project on jenkins. There are several test codes. I am reviewing test code using rcov. But when I built the project on jenkins, the following error was found.

Publishing rcov report...
rcov report index file wasn't found

In the post build action, I took the necessary steps. The default directory for the "Rcov Report Directory" is / rcov coverage

any solution?

+4
source share
1 answer

You must complete the next step to succeed:

jenkins_app/configure/

Then you need to go Post-build Actionsand then goPublish Rcov report

You will see a text field Rcov report directory, and then fill in the value of the text fieldcoverage/rcov

, gem:

 #Gemfile

 gem 'simplecov', :require => false, :group => :test
 gem 'simplecov-rcov'

spec/spec_helper.rb :

require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start 'rails'

, !

+4

All Articles