Home

Awesome

code-climate-logo_black-200

Code Climate Test Reporter

Code Climate's test reporter is a binary that works in coordination with codeclimate.com to report test coverage data. Once you've set up test coverage reporting you can:

Code Climate accepts test coverage data from virtually any location, including locally run tests or your continuous integration (CI) service, and supports a variety of programming languages and test coverage formats, including Ruby, JavaScript, Go, Python, PHP, Java, and more.

For installation instructions, check out our docs on Configuring Test Coverage and Test Coverage Troubleshooting Tips.

To sign up for Code Climate, head here.

Versioning

The test reporter's current version is documented in VERSIONING/VERSION, following the Semantic Versioning convention.

Binaries

Download

The test reporter is distributed as a pre-built binary named cc-test-reporter. You can fetch the pre-built binary from the following URLs:

Linux

Linux ARM64

Linux netcgo (recommended if you're using a VPN)

OS X

Windows

e.g

$ curl -L -O https://codeclimate.com/downloads/test-reporter/test-reporter-0.10.1-darwin-amd64

Verifying binaries

Along with the binaries you can download a file with a SHA 256 checksum for the given version from the link shown below, or you can attach it to your clipboard from the docs page.

To download the file containing the checksum using curl:

e.g

$ curl -L -O https://codeclimate.com/downloads/test-reporter/test-reporter-0.10.1-darwin-amd64.sha256

To check that a downloaded file matches the checksum, run it through shasum with a command such as:

$ grep test-reporter-${VERSION}-darwin-amd64  test-reporter-${VERSION}-darwin-amd64.sha256 | shasum -a 256 -c -

The GPG detached signature of SHA checksums can be download analogously from the following url:

You can use it with gpg to verify the integrity of your downloaded checksum. You will first need to import the GPG publick key. To import the key:

$ gpg --keyserver  keys.openpgp.org --recv-keys 9BD9E2DD46DA965A537E5B0A5CBF320243B6FD85

Then use the following command to verify the file's signature.

$ gpg --verify test-reporter-${VERSION}-darwin-amd64.sha256.sig test-reporter-${VERSION}-darwin-amd64.sha256

Copyright

See the LICENSE.