1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00
varvet--pundit/spec
Duncan Stuart 8ffa4fe866 Report test coverage to CodeClimate
Coverage gets generated on every build, but we only need to send it for
one build. Send it on the first one, otherwise we get eg:

    ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
    time="2019-08-22T12:37:01Z" level=warning msg="Conflict when uploading: A test report for commit 6dabaaa6cd7e4c5c51dc538e4fbb7861ca433d8e already exists, skipping upload"

I guess this is because the test reporter assumes that if coverage
exists, then it has been sent?

Config from here:

https://docs.codeclimate.com/docs/travis-ci-test-coverage#section-travis-ci-single-test-suite-non-parallel-builds
2019-11-12 10:02:12 +01:00
..
policies Add frozen string literal magic comment 2019-08-12 15:02:15 +02:00
policy_finder_spec.rb Add frozen string literal magic comment 2019-08-12 15:02:15 +02:00
pundit_spec.rb rm weak assertion 2019-11-12 00:42:58 +09:00
spec_helper.rb Report test coverage to CodeClimate 2019-11-12 10:02:12 +01:00