This project is not maintained anymore!
Please use alternatives like https://github.com/dutchiexl/BehatHtmlFormatterPlugin, (*1)
behat-twig-report-extension
Create Behat 3 test reports with Twig templates, (*2)
About
This extension provides an easy way to create reports of your test runs. It uses Twig for templating., (*3)
It term "report" in the extension name is deliberate as the output file will be created after all tests are processed., (*4)
An example can be found here, (*5)
, (*6)
Installation
In your composer.json
add, (*7)
{
"require": {
...
"chartinger/behat-twig-report-extension": "*@dev"
}
}
and update your dependencies, (*8)
Usage
To activate this extension add this to your behat.yml
, (*9)
default:
extensions:
chartinger\Behat\TwigReportExtension\Extension:
output:
file: ./output/index.html
Configuration
You can confgure the templates as well as the output file., (*10)
default:
extensions:
chartinger\Behat\TwigReportExtension\Extension:
templates:
dir: /path/to/templates
file: yourtemplate.twig
output:
file: ./output/index.html
Known Issues / Limitations
- No output of exact errors