Registry / testing / gulp-protractor-cucumber-html-report

gulp-protractor-cucumber-html-report

JSON →
library0.1.3jsnpmunverified

A Gulp plugin for generating HTML reports from Cucumber JSON output files. Version 0.1.3 (latest), with no recent updates. It provides a simple pipe-friendly reporter for Gulp-based workflows, supporting configurable output directory and filename. Key differentiators: it is a stand-alone fork for Gulp users, focusing on minimal setup.

npm install gulp-protractor-cucumber-html-report
INSTALL
IMPORT
SIG · GULP-PROTRACTOR-CU
G
gulp-protractor-cucumber-html-report
testingjavascriptv0.1.3
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.

default
var reporter = require('gulp-protractor-cucumber-html-report');
import reporter from 'gulp-protractor-cucumber-html-report';
This is a CommonJS module, not ESM.
protractorReport
var protractorReport = require('gulp-protractor-cucumber-html-report');
var protractorReport = require('gulp-protractor-cucumber-html-report').protractorReport;
The plugin exports the function directly, not as a named export.
gulp.src(glob).pipe(reporter(options))
gulp.src('./cucumber-test-results.json').pipe(reporter({ dest: 'reports/' }));
gulp.src('./cucumber-test-results.json').pipe(reporter).pipe(gulp.dest('.'));
The reporter expects options and outputs the HTML file via its own logic, not via gulp.dest.

Example Gulp task to generate an HTML report from a Cucumber JSON file.

var gulp = require('gulp'); var protractorReport = require('gulp-protractor-cucumber-html-report'); gulp.task('generate-report', function() { return gulp.src('./cucumber-test-results.json') .pipe(protractorReport({ dest: 'reports/', filename: 'report.html' })); });
Debug
Known issues
deprecatedPackage is outdated; last release in 2016. No updates for breaking changes in Node.js, Gulp, or Cucumber.
fix
Consider migrating to modern alternatives like cucumber-html-reporter or allure-cucumberjs.
affects: >=0.0.0
breakingRequires Gulp ~3.9.0; incompatible with Gulp 4.x+.
fix
Use Gulp 3.x or find a Gulp 4-compatible plugin.
affects: >=0.0.0
gotchaThe plugin relies on the Cucumber JSON file being generated via a specific listener hook; incorrect setup may lead to empty report.
fix
Ensure you have a Cucumber hook that writes JSON output to a file (see README examples).
affects: >=0.0.0
gotchaOptions 'dest' and 'filename' are case-sensitive; misspelling will use defaults.
fix
Use exactly 'dest' and 'filename' as documented.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'gulp-protractor-cucumber-html-report'
Module not installed or not in node_modules.
fix
Run: npm install gulp-protractor-cucumber-html-report --save-dev
TypeError: reporter is not a function
Importing with ES6 import instead of require.
fix
Use: var reporter = require('gulp-protractor-cucumber-html-report');
Error: ENOENT: no such file or directory, open '...'
The source JSON file does not exist.
fix
Check that gulp.src points to the correct path to your Cucumber JSON file.
Report is empty or missing content
Cucumber JSON file was not generated correctly (no hook or wrong hook).
fix
Add a Cucumber hook that writes JSON output to a file (see README examples).
Upgrade
Version history
0.1.3latest on npm
Audit
Dependencies
gulprequiredpeer dependency, requires Gulp ~3.9.0
Agent activity
4 hits · last 30 days
node
4
Resources
gulp-protractor-cucumber-html-report — npm install gulp-protractor-cucumber-html-report · libregistry