1.4.0 • Published 7 years ago

jasmine-web-reporter v1.4.0

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

jasmine-web-reporter

Send jasmine2 / protractor results to webhook/service

Protractor usage:

Add to conf.js file

 onPrepare: function() {
    var webRep = require('jasmine-web-reporter');   
    browser.getProcessedConfig().then(function(config) {
        var browserName = config.capabilities.browserName;
        jasmine.getEnv().addReporter(new webRep.WebReporter({
          projectName:'Project 1',
          module:'Module 1',
          url: 'http://demo.qaconsole.com/testruns',
          environment : 'Stage',
          info : {
            "browserName" : config.capabilities.browserName
          }
        }));
    }); 
}

jasmine usage

Create jasmine.js

const Jasmine = require('jasmine');
const webRep = require('jasmine-web-reporter');

const jasmine = new Jasmine();

jasmine.addReporter(new webRep.WebReporter({
        projectName:'API - Jasmine',
        module:'API',
        url: 'http://demo.qaconsole.com/testruns',
        environment : 'Production',        
      }));

jasmine.loadConfigFile('./spec/support/jasmine.json'); // load jasmine.json configuration
jasmine.execute();

Run with node

node jasmine.js
1.4.0

7 years ago

1.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago