I am trying to configure a rails project to jenkins. there are some test code. I am covering the test code using rcov. But when i build the project on jenkins , the following error was found.
Publishing rcov report...
rcov report index file wasn't found
In post build action i made the necessary steps. default directory for "Rcov report directory" is coverage/rcov
any solution ?
You should follow the bellow step to get success:
Then you need to go
Post-build Actionsand then goPublish Rcov reportYou will see
Rcov report directorytext field and then fill the text box value bycoverage/rcovAlso before do this you need to ensure that you have right gem in your gem file:
And also configure your
spec/spec_helper.rblike this:I hope then your issue will be fixed!