Grunt task to use Coveralls with Karma
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 22 commits behind mattjmorrison:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Getting Started

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-karma-coveralls --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:


Grunt Configuration Example:

coveralls: {
    options: {
        debug: true,
        coverage_dir: 'directory name',
        dryRun: true,
        force: true

Optional Configuration Options

dryRun: [boolean]

Using this option you can run coverage without sending data to the coveralls service and instead writing the results to coveralls.json.

force: [boolean]

Using this option you can ensure that if there is a failure, ie: the coveralls service is down, your grunt tasks will continue to run and not terminate due to the error.

If you haven't used Karma before, check out the video on the homepage.

Karma Configuration Example:

reporters: ['coverage'],
preprocessors: {
    "**/lib/*js": "coverage"
coverageReporter: {
    type: "lcov",
    dir: "coverage/"
plugins: [