- 1 year ago
How to run behat-html-formatter in behat 3.5
Comment
1 / 1
To run the behat-html-formatter
with Behat 3.5, you can follow these steps:
Install the
behat-html-formatter
package via Composer:csscomposer require --dev xyan/behat-html-formatter
Configure Behat to use the HTML formatter by adding the following lines to your
behat.yml
file:yamldefault:
extensions:
Xyan\BehatHtmlFormatter\Extension: ~
Run Behat with the
--format
option set tohtml
:cssvendor/bin/behat --format html
This will generate an HTML report of your Behat test results.
Note: Please make sure you have PHP installed on your system and that the necessary dependencies are properly configured in your Behat project.
Please refer to the behat-html-formatter
documentation for more information and advanced configuration options: https://github.com/Xyan/behat-html-formatter