1.2.0 • Published 8 years ago

karma-powershell-reporter v1.2.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

karma-powershell-reporter

Installation

The easiest way is to keep karma-powershell-reporter as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "^1.0.0",
    "karma-powershell-reporter": "^1.0.0"
  }
}

You can simple do it by:

$ npm install karma-powershell-reporter --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['jasmine'],

    // reporters configuration
    reporters: ['powershell']
  });
};

Options

The karma-powershell-reporter leverages the reporting capabilities of karma-mocha-reporter. Any config option available to the karma-mocha-reporter is also available to the karma-powershell-reporter with the exception of the ability to control specific colors. The config values can be found at the chalk github repo.

The config values are set as such:

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['jasmine'],

    // reporters configuration
    reporters: ['powershell'],

    // reporter options
    powershellReporter: {
      // mocha reporter config options
    }
  });
};