cawolf / behat-cucumber-json-formatter
Behat extension for generating json reports
Installs: 522 497
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 23
Open Issues: 5
Requires
- php: >=7.3
- ext-json: *
- behat/behat: ^3.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpstan/phpstan: ^0.12.66
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- symfony/process: ^4.4
README
Behat Cucumber Json Formatter
Note: this is a fork of Vanare/behat-cucumber-formatter. As the original project seems unmaintained and there is no possibility to contact the owner, I publish the library under my handle. Many thanks to the original team of Vanare for starting this great library!
This is Behat extension for generating json reports for Cucumber Test Result Plugin which provides graphs over time and drill down to individual results using the standard Jenkins test reporting mechanism.
Requirements
-
PHP 7.3 or higher
-
Behat 3.x
Installation
Installation via Composer:
$ composer require --dev cawolf/behat-cucumber-json-formatter
Usage
Setup extension by specifying your behat.yml
:
default:
extensions:
Vanare\BehatCucumberJsonFormatter\Extension:
fileNamePrefix: report
resultFilePerSuite: true
outputDir: %paths.base%/build/tests
Then you can run:
bin/behat -f cucumber_json
Available options:
fileNamePrefix
: Filename prefix of generated reportoutputDir
: Generated report will be placed in this directoryfileName
(optional): Filename of generated report - current feature name will be used by default. Only applicable whenresultFilePerSuite
is not enabled.resultFilePerSuite
(optional): The default behaviour is to generate a single report namedall.json
. If this option is set totrue
, a report will be created per behat suite.
Licence
MIT Licence