Closed AndyObtiva closed 4 years ago
I’m going to try an alternative code coverage service instead (Coveralls). My project has received very big architectural refactorings, so this issue report is not accurate anymore since the tests live in a different Ruby gem now.
Hi,
I configured codeclimate for Travis-CI and Ruby Simplecov as per the instructions in the docs: https://docs.codeclimate.com/docs/travis-ci-test-coverage
It's for this open-source GitHub repository (Glimmer Ruby Desktop Development Library running on JRuby): https://github.com/AndyObtiva/glimmer
I keep getting invalid reports for test coverage like the following although the build says they were uploaded successfully to Code Climate:
The only pattern I can detect is that the path is always referring to a file outside my project and that is part of an rspec gem (
rspec-core
orrspec-expections
)Here is a successful Travis-CI build (runs on linux and mac, but I only submit test coverage on linux):
https://travis-ci.com/github/AndyObtiva/glimmer/jobs/340842693
Here is my .travis.yml configuration:
I tried to follow some of the suggestions in this issue, but it does not seem relevant to my case at all: https://github.com/codeclimate/test-reporter/issues/375
For example, I tried the following changes to .travis.yml, but that didn't fix anything:
The last one is a common parent path for both the project and the gems. I thought that might help, but to no avail. It does not seem relevant at all.
Thanks in advance, any help would be greatly appreciated!