0.0.4 • Published 5 years ago

jasmine-bamboo-reporter-nolock v0.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

jasmine-bamboo-reporter-nolock

view on npm npm module downloads per month

A reporter for Jasmine which produces a report compatible with Atlassian Bamboo Mocha Test Parser. (forked from https://github.com/voidberg/jasmine-bamboo-reporter) This package does NOT support "'test sharding' or multiple instances of Jasmine running via Protractor" claimed by https://github.com/voidberg/jasmine-bamboo-reporter as the lock mechanism has been removed.

I had no luck to have the package https://github.com/voidberg/jasmine-bamboo-reporter running in my environment, it just always created a lock file, but not the report. As my requirement is to run the tests in a single thread, I just removed the locking mechanism and it then worked well for my purpose. Hope this package can help others in the same situation.

Installation

npm install jasmine-bamboo-reporter-nolock

Usage

Jasmine Usage

var JSONReporter = require('jasmine-bamboo-reporter-nolock');
jasmine.getEnv().addReporter(new JSONReporter({
	file: 'jasmine-results.json', // by default it writes to jasmine.json
	beautify: true,
	indentationLevel: 4 // used if beautify === true
}));

Protractor/Jasmine Usage

// in Protractor conf
var JSONReporter = require('jasmine-bamboo-reporter-nolock');

exports.config = {

framework: 'jasmine2',

...
 
onPrepare: function() {
	jasmine.getEnv().addReporter(new JSONReporter({
		file: 'jasmine-results.json', // by default it writes to jasmine.json
		beautify: true,
		indentationLevel: 4 // used if beautify === true
	}));
}

License

MIT