Skip to content

Karma reporter that integrates with Bamboo tests reports

License

Notifications You must be signed in to change notification settings

Dashlane/karma-bamboo-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

karma-bamboo-reporter

This Karma reporter will create a report file readable by the Mocha Test Parser task. You will need the Bamboo Node.js Support plugin.

Installation

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

npm install Dashlane/karma-bamboo-reporter --save-dev

to let npm automatically add it there.

Configuration

You need to add the reporter to your Karma config.

// …

reporters: ['bamboo'],

bambooReporter: {
  filename: 'util.mocha.json' // optional, defaults to "mocha.json"
},

plugins: ['karma-bamboo-reporter']

// …

In the Bamboo job, you need to add the Mocha Test Parser task after the execution of your tests.

Beware: Your tests' full names will have to be unique otherwise they might not appear in Bamboo's Tests report.

Credits

Forked from a project started by Evan Sharp: https://github.com/TheSharpieOne/karma-bamboo-reporter

About

Karma reporter that integrates with Bamboo tests reports

Resources

License

Stars

Watchers

Forks

Packages

No packages published