buildkite/javascript-test-reporter

Name: javascript-test-reporter

Owner: Buildkite

Description: Code Climate test reporter client for JavaScript projects

Created: 2015-08-19 00:24:00.0

Updated: 2015-08-19 00:24:00.0

Pushed: 2015-08-19 00:24:11.0

Homepage: https://codeclimate.com

Size: 96

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

codeclimate-test-reporter

Code Climate Test Coverage

Supplies a script which accepts lcov data over standard input, formats the coverage data and sends it to Code Climate.

Code Climate - https://codeclimate.com

Important FYIs

Across the many different testing frameworks, setups, and environments, there are lots of variables at play. Before setting up test coverage, it's important to understand what we do and do not currently support:

Installation

This npm package requires having a user (but not necessarily a paid account) on Code Climate, so if you don't have one the first step is to create an account at: https://codeclimate.com. Then:

  1. Generate coverage data in lcov format

    Lcov data can be generated by a number of JavaScript code coverage tools, including Istanbul.

  2. Install codeclimate's NPM package

      $ npm install -g codeclimate-test-reporter
    
  3. Specifying your repo token as an environment variable, send lcov coverage data to the codeclimate npm script.

    For example, if your coverage data resides in a “lcov.info” file:

      CODECLIMATE_REPO_TOKEN=ABCD11110000000 codeclimate-test-reporter < lcov.info
    

The CODECLIMATE_REPO_TOKEN value is provided after you add your repo to your Code Climate account by clicking on “Setup Test Coverage” on the right hand side of your feed.

Please contact hello@codeclimate.com if you need any assistance setting this up.

Troubleshooting

If you're having trouble setting up or working with our test coverage feature, see our detailed help doc, which covers the most common issues encountered.

Contributions

Patches, bug fixes, feature requests, and pull requests are welcome on the GitHub page for this project: https://github.com/codeclimate/javascript-test-reporter

Copyright

See LICENSE.txt


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.