Registry / testing / cucumber-teamcity-formatter

cucumber-teamcity-formatter

JSON →
library2.0.1jsnpmunverified

Cucumber-js formatter that outputs test results in TeamCity service message format. Version 2.0.1 (stable, low release cadence). Requires cucumber >=6.0.2 <7. Integrates directly with cucumber's --format CLI option, no additional setup needed. Distinguishes itself by being the primary package for TeamCity integration with cucumber-js.

npm install cucumber-teamcity-formatter
INSTALL
IMPORT
SIG · CUCUMBER-TEAMCITY-
C
cucumber-teamcity-formatter
testingjavascriptv2.0.1
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.

formatter
cucumber --format cucumber-teamcity-formatter
cucumber --format cucumber-teamcity-formatter/index.js
Use package name, not file path. Works with cucumber CLI.
require('cucumber-teamcity-formatter')
const formatter = require('cucumber-teamcity-formatter'); // CJS
import formatter from 'cucumber-teamcity-formatter'; // ESM not supported
Package is CJS only; no ESM entry point.
CustomFormatter
const { CustomFormatter } = require('cucumber-teamcity-formatter');
const CustomFormatter = require('cucumber-teamcity-formatter').CustomFormatter;
Named export CustomFormatter is available in CJS.

Install the package as a dev dependency and run cucumber with the TeamCity formatter.

npm install cucumber-teamcity-formatter --save-dev # Then run cucumber with the formatter: ./node_modules/.bin/cucumber --format cucumber-teamcity-formatter
Debug
Known issues
breakingVersion 2.x may not be compatible with cucumber v7 or higher.
fix
Check peer dep: cucumber >=6.0.2 <7. Use with cucumber v6.x.
affects: >=2.0.0
gotchaFormatter referenced by package name fails if not installed in node_modules root.
fix
Use full path: --format node_modules/cucumber-teamcity-formatter
affects: >=1.0.0
gotchaOutput format assumes TeamCity service messages; may not work with non-JetBrains CI.
fix
Only use in TeamCity environment.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'cucumber-teamcity-formatter'
Package not installed or not in node_modules root.
fix
Run 'npm install cucumber-teamcity-formatter --save-dev' and ensure it's in the project root.
ERROR: Cannot resolve formatter: cucumber-teamcity-formatter
Cucumber cannot find the formatter when using --format.
fix
Use full path: --format node_modules/cucumber-teamcity-formatter
Upgrade
Version history
2.0.1latest on npm
Audit
Dependencies
cucumberrequiredPeer dependency; the formatter plugs into cucumber's format system.
Agent activity
11 hits · last 30 days
node
10
Resources
cucumber-teamcity-formatter — npm install cucumber-teamcity-formatter · libregistry