codeclimate / ruby-test-reporter

DEPRECATED Uploads Ruby test coverage data to Code Climate
https://codeclimate.com
Other
92 stars 92 forks source link

Test suites merge support with .simplecov file #159

Closed SergeyKishenin closed 7 years ago

SergeyKishenin commented 7 years ago

I had to use .simplecov file to make a centralized config to make all my test suite results to be merged.

We are using Solano as CI service and have the following coverage config:

  :coverage:
    version: 2
    enabled: true

Once we moved to version: 2 coverage increased up to about 81%. After that it stopped updating at all.

I used to run CODECLIMATE_REPO_TOKEN=<token> bundle exec codeclimate-test-reporter and this command updated our coverage up to 89% — but it's wrong as it's only coverage from RSpec. We also have Cucumber features and overall coverage locally is shown more that 91%.

Local config:

.simplecov (at the project's root):

SimpleCov.merge_timeout 3600
SimpleCov.start "rails"

spec_helper.rb:

require "simplecov"

SimpleCov.command_name "rspec"

env.rb:

require "simplecov"

SimpleCov.command_name "cucumber"

Can you please advise?

SergeyKishenin commented 7 years ago

Closing this as I've found #134