drevops / behat-format-progress-fail
Behat output formatter to show progress as TAP and fails inline.
Installs: 419 149
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 3
Open Issues: 1
Requires
- php: >=8.1
- behat/behat: ^3.18
Requires (Dev)
- behat/mink: ^1.8
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- drevops/behat-phpserver: ^1
- drupal/coder: ^8.3
- ergebnis/composer-normalize: ^2.45
- escapestudios/symfony2-coding-standard: ^3
- phpstan/phpstan: ^2
- phpunit/phpunit: ^10.0
- rector/rector: ^2
- squizlabs/php_codesniffer: ^3
- symfony/process: ^6 || ^7.0
README
Behat Progress Fail Output Extension
Behat output formatter to show progress as TAP and failures inline.
..
--- FAIL ---
Then I should have 3 apples # (features/apples.feature):11
Failed asserting that 2 matches expected 3.
------------
......U.......
--- FAIL ---
Then I should have 8 apples # (features/apples.feature):25
Failed asserting that 7 matches expected 8.
------------
.....UU
Installation
composer require --dev drevops/behat-format-progress-fail
Usage
vendor/bin/behat --format=progress_fail
Configure
behat.yml
default: extensions: DrevOps\BehatFormatProgressFail\FormatExtension: ~
or
behat.yml
default: extensions: DrevOps\BehatFormatProgressFail\FormatExtension: show_output: in-summary # Supported values: yes | no | on-fail
show_output
Show output from within test steps. "Output" is print
, echo
, var_dump
, etc.
yes
- always show the outputno
- do not show the outputon-fail
- only show the output if there are test failsin-summary
- only show in the summary if there are test fails
Maintenance
Lint code
composer lint composer lint-fix
Run tests
composer test
This repository was created using the Scaffold project template