Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.04 KB

Readme.md

File metadata and controls

40 lines (29 loc) · 1.04 KB

Unify reports from all your tests runs and send them as one.

Automated setup

Use codeclimate batch

Manual usage

# only do when running on master branch ... see codeclimate_batch for details
ENV["TO_FILE"] = "1"
ENV["CODECLIMATE_REPO_TOKEN"] = "XXXX"

`rm -rf #{Dir.tmpdir}/codeclimate-test-coverage-*` # cleanup old reports
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

... run tests ...

file = Dir.glob("#{Dir.tmpdir}/codeclimate-test-coverage-*").first

... send report

Send report

curl -X POST --data-binary @report.json https://cc-amend.herokuapp.com/amend/some_random_key?count=4
# => waiting for 3 more reports on some_random_key
# => waiting for 2 more reports on some_random_key
# => waiting for 1 more reports on some_random_key
# => sent 4 reports

Author

Michael Grosser
michael@grosser.it
License: MIT
Build Status