Package Exports
- nightwatch-teamcity
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nightwatch-teamcity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Nightwatch.js tests formatter for TeamCity
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