nightwatch-teamcity

0.2.2 • Public • Published

Nightwatch.js tests formatter for TeamCity

npm version Build Status Dependencies

TeamCity formatter for Nightwatch.js end-to-end testing framework.

Install

npm install nightwatch-teamcity --save-dev

Usage

Add --reporter node_modules/nightwatch-teamcity/index.js to your Nightwatch run command

Composing with other reporters

In order to compose with another reporter (e.g. nightwatch-html-reporter), you'll need to create your custom reporter and import the formatter function from this package:

// nightwatch-reporter.js
 
var HtmlReporter = require("nightwatch-html-reporter");
var teamCityFormatter = require("nightwatch-teamcity").format;
 
var reporter = new HtmlReporter({
    reportsDirectory: "./reports",
});
 
module.exports = {
    write: function(results, options, done) {
        teamCityFormatter(results);
        reporter.fn(results, done);
    }
};
 

Running Nightwatch:

$ nightwatch --reporter ./nightwatch-reporter.js

Package Sidebar

Install

npm i nightwatch-teamcity

Weekly Downloads

153

Version

0.2.2

License

MIT

Unpacked Size

39.5 kB

Total Files

7

Last publish

Collaborators

  • pterolex