Registry / testing / nightwatch-teamcity

nightwatch-teamcity

JSON →
library0.2.2jsnpmunverified

Nightwatch tests formatter for TeamCity CI server. Version 0.2.2 is the latest stable release; the package has had no updates since 2017. It provides a simple reporter that outputs Nightwatch test results in TeamCity service message format. Differentiators: minimal setup (just add a --reporter flag) and the ability to compose with other reporters via a custom script. Compatible with Nightwatch v0.9+ and TeamCity CI.

npm install nightwatch-teamcity
INSTALL
IMPORT
SIG · NIGHTWATCH-TEAMCIT
N
nightwatch-teamcity
testingjavascriptv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

format
import { format } from 'nightwatch-teamcity'
const teamCityFormatter = require('nightwatch-teamcity')
Using require without destructuring gives the whole module, not the format function. Use require('nightwatch-teamcity').format.
default
const teamCity = require('nightwatch-teamcity')
There is no default export. The module exports { format }. Use named import or destructure require.
format from namespace
const { format } = require('nightwatch-teamcity')
const format = require('nightwatch-teamcity')
Direct assignment gives the entire module object, not the format function.

Shows two ways to use the formatter: via CLI --reporter flag, or programmatically in a custom reporter.

// In your Nightwatch configuration or CLI: // nightwatch --reporter node_modules/nightwatch-teamcity/index.js // Or for custom reporter: const { format } = require('nightwatch-teamcity'); module.exports = { write: function(results, options, done) { format(results); done(); } };
Debug
Known issues
gotchaThe module exports { format } not a default function.
fix
Use const { format } = require('nightwatch-teamcity') or import { format } from 'nightwatch-teamcity'.
affects: >=0.0.0
gotchaWhen using --reporter, provide full path to index.js.
fix
Use --reporter node_modules/nightwatch-teamcity/index.js
affects: >=0.0.0
Errors
Common errors & fixes
TypeError: teamCityFormatter is not a function
Importing the whole module without destructuring the format function.
fix
Use const { format } = require('nightwatch-teamcity').
Upgrade
Version history
0.2.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
nightwatch-teamcity — npm install nightwatch-teamcity · libregistry