diff --git a/examples/multiple_suites.md b/examples/multiple_suites.md index 66556d24..c192f44c 100644 --- a/examples/multiple_suites.md +++ b/examples/multiple_suites.md @@ -54,6 +54,9 @@ jobs: command: | bundle exec rake ./tmp/cc-test-reporter format-coverage -t simplecov -o tmp/codeclimate.backend.json coverage/backend/.resultset.json + environment: + # Note that to make simplecov output in appropriate format, `CC_TEST_REPORTER_ID` environment variable should be set before testing + - CC_TEST_REPORTER_ID: 1acf55093f33b525eefdd9fb1e601d748e5d8b1267729176605edb4b5d82dc3d - persist_to_workspace: root: tmp paths: diff --git a/examples/ruby_examples.md b/examples/ruby_examples.md index b9619010..31aa473e 100644 --- a/examples/ruby_examples.md +++ b/examples/ruby_examples.md @@ -37,6 +37,7 @@ before_script: - ./cc-test-reporter before-build script: + # Note that to make simplecov output in appropriate format, `CC_TEST_REPORTER_ID` environment variable should be set before testing - bundle exec rake $TASKS after_script: @@ -100,6 +101,7 @@ before_script: bundle exec rake db:create db:migrate # Run the test suites script: - bundle exec rubocop -DESP # Backend linting + # Note that to make simplecov output in appropriate format, `CC_TEST_REPORTER_ID` environment variable should be set before testing - bundle exec rake # Backend specs #- npm test -- --browsers Firefox # Frontend specs - npm test # Frontend linting & specs @@ -204,6 +206,9 @@ jobs: --out test-results/rspec/rspec.xml \ --format progress \ -- ${TESTFILES} + environment: + # Note that to make simplecov output in appropriate format, `CC_TEST_REPORTER_ID` environment variable should be set before testing + CC_TEST_REPORTER_ID: c3ff91e23ea0fea718bb62dae0a8a5440dc082d5d2bb508af6b33d0babac479a - run: name: Code Climate Test Coverage command: |