scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

Setup karma tests/coverage in Travis and Code Climate #86

Closed scottohara closed 9 years ago

scottohara commented 9 years ago

Currently Travis is configured to run the backend specs (using the default bundle exec rake). Code Climate is configured to report on the coverage of those backend specs (with a corresponding README badge).

Ideally we'd like to have Travis also run the karma test suite (using gulp test); and have Code Climate report on the front end coverage as well.

For Travis this presumably means:

  1. Including an install step that runs npm install
  2. Having a karma.conf.js setup that runs the suite once, in (ideally) Chrome and PhantomJS (or perhaps PhantomJS and Firefox if Chrome is not possible); and outputs in LCOV
  3. Adding the codeclimate-test-reporter NPM package as a dependency
  4. Piping the LCOV output into the codeclimate reporter (codeclimate < LCOV.output)

Not sure how Code Climate would deal with two different sets of coverage results?

scottohara commented 9 years ago

Done, but waiting for CodeClimate to support multiple test coverage payloads (see #92)