This extension requires:
- PHP 7.0 or higher
- Behat 3.x or higher
$ composer require miamioh/behat-CSVFormatter
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
...
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: ' )