0.2.2 • Published 6 years ago

nightwatch-teamcity v0.2.2

Weekly downloads
531
License
MIT
Repository
github
Last release
6 years ago

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