Download the PHP package matthiasnoback/gherkin-features-html-exporter without Composer
On this page you can find all versions of the php package matthiasnoback/gherkin-features-html-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matthiasnoback/gherkin-features-html-exporter
More information about matthiasnoback/gherkin-features-html-exporter
Files in matthiasnoback/gherkin-features-html-exporter
Package gherkin-features-html-exporter
Short Description A tool for exporting Gherkin features to HTML
License MIT
Informations about the package gherkin-features-html-exporter
Gherkin features HTML exporter
This library uses behat/gherkin
(which is also used by Behat) to parse .feature
files and renders HTML pages that you can style yourself, export to PDF, and show to other stakeholders.
Getting started
Install using Composer:
Usage
The stylesheet is optional and should be present in the provided [export/]
directory.
For each .feature
file in [features/]
a corresponding .html
file will be generated in [export/]
.
Combine features by tag
Another way to use this tool is to combine all features with a given tag in a single .html
file named by that tag:
This will find all features tagged @wip
and store them in a file called [export/]wip.html
.
Reformat HTML
There's an option to reformat the HTML before saving it:
Demo
You'll find an example.feature
in the style.css
can be used as an example stylesheet. example.html
was generated by running:
All versions of gherkin-features-html-exporter with dependencies
behat/gherkin Version ^4.8
symfony/console Version ^4.4|^5.2
thecodingmachine/safe Version ^1.3
league/commonmark Version ^1.5
wa72/html-pretty-min Version ^0.2.0