1.0.7 • Published 8 years ago

jasmine-suite-reporter v1.0.7

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

jasmine-suite-reporter

npm Build Status

A Simple suite spec reporter for Jasmine 2

npm.io

Usage

Installation

Install jasmine-suite-reporter using npm:

npm install jasmine-suite-reporter

Node Implementation

To use the reporter with you node projects simply install and use the reporter as following:

const Jasmine = require('jasmine');
const suiteReporter = require('jasmine-suite-reporter');

var jasmine = new Jasmine();
//Optional override of the default reporter
jasmine.configureDefaultReporter({
  print: function(){}
});
//Register Reporter
jasmine.addReporter(SuiteReporter.create({
  includeStack: true
}));
//load configuration file
jasmine.loadConfigFile('config/file.json');
//Jasmine Start
jasmine.execute();

Protractor Implementation

In your Protractor configuration file:

const suiteReporter = require('jasmine-suite-reporter');

exports.config = {
  // your config settings ...
  jasmineNodeOpts: {
    //Remove default dot reporter
    print: function() {}
  },
  onPrepare: function() {
    var jasmineEnv = jasmine.getEnv();
    //Adding custom reporter
    jasmineEnv.addReporter(suiteReporter.create({
      includeStack: true
    }));
  }
};

Karma Implementation

In your karma.conf.js file:

module.exports = function(config){
  config.set({
    // your config settings ...
    reporters: ['suite'],
    plugins: [
      //your plugins...
      'jasmine-suite-reporter/karma'
    ]
  })
};
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago