miamioh / behat-csv-formatter
This will create a CSV formatter for Behat.
v0.7
2018-03-07 18:40 UTC
Requires
- php: >=7.0
- behat/behat: ^3.4
- miamioh/behat-classes: >=0.1
Requires (Dev)
- phpunit/phpunit: ^6.4
- symfony/process: >2.3,<4.0
This package is not auto-updated.
Last update: 2025-05-02 23:01:28 UTC
README
Prerequisites
This extension requires:
- PHP 7.0 or higher
- Behat 3.x or higher
Install with composer:
$ composer require miamioh/behat-CSVFormatter
Basic usage
Activate the extension by specifying its class in your behat.yml
:
# behat.yml
default:
suites:
...
extensions:
miamioh\behat-CSVFormatter:
filename: report.csv
outputDir: %paths.base%/build/tests
...
Configuration
filename
- filenameoutputDir
- dir to be created filename
(Optional Parameters)
columnList
- Used as the header column of CSV output if write Method is Overwrite, can also be used to limit the columns that will be displayed in the output. (Default: Suite,Name,Tags,StartTime,EndTime,Duration,Status,StepName,ErrorMessage)writeMethod
- Append or Overwrite possible write methods (Default: Append )delimiter
- delimiter used to separate the fields of Output (Default: , )enclosure
- character used to denote the beginning and ending of the field (Default: ' )