Registry / testing / autokin-html-formatter

autokin-html-formatter

JSON →
library0.1.0jsnpmunverified

A CucumberJS formatter that generates pretty HTML reports for test results. Version 0.1.0 is the initial release. It conforms to the Cucumber formatter API and outputs a standalone HTML file. Designed as the default formatter for Autokin framework, but can be used standalone with any cucumber-js project. Supports saving output to a custom file path.

npm install autokin-html-formatter
INSTALL
IMPORT
SIG · AUTOKIN-HTML-FORMA
A
autokin-html-formatter
testingjavascriptv0.1.0
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.

(usage)
cucumber-js -f autokin-html-formatter:output.html
cucumber-js -f node_modules/autokin-html-formatter (missing colon-separated output file)
The formatter is used via cucumber-js CLI, not imported in code. Use colon to specify output path.

Show how to install and use the formatter with cucumber-js to generate an HTML report.

npm install --save-dev cucumber autokin-html-formatter # Create a simple feature file cat <<'EOF' > features/sample.feature Feature: Sample Scenario: Passing Given a step EOF # Run cucumber with formatter npx cucumber-js -f autokin-html-formatter:report.html
Debug
Known issues
gotchaOutput file path is relative to the current working directory, not the project root. Ensure directory exists before writing.
fix
Use absolute path or create directory before running cucumber-js.
affects: all
breakingRequires cucumber-js >=3.0.0. Older versions may not support custom formatters.
fix
Upgrade cucumber-js to version 3.0.0 or later.
affects: cucumber <3.0.0
gotchaFormatters must be registered via the -f or --format CLI flag; importing the module directly in code will not work.
fix
Always use command line format flag.
affects: all
Errors
Common errors & fixes
Could not find formatter 'autokin-html-formatter'
Package not installed or not in node_modules.
fix
Run npm install --save-dev autokin-html-formatter
Cannot read property 'format' of undefined
Cucumber version < 3.0.0 not supported.
fix
Install cucumber@^3.0.0
EACCES: permission denied, open 'report.html'
Lack of write permissions for output file path.
fix
Ensure target directory exists and is writable, or use an absolute path.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies
cucumberrequiredPeer dependency: requires cucumber >=3.0.0 to be installed.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
autokin-html-formatter — npm install autokin-html-formatter · libregistry