https://github.com/drevops/behat-format-progress-fail
🧪 Behat output formatter to show progress as TAP and failures inline
https://github.com/drevops/behat-format-progress-fail
behat behat-context behat-extension php progress test
Last synced: 12 months ago
JSON representation
🧪 Behat output formatter to show progress as TAP and failures inline
- Host: GitHub
- URL: https://github.com/drevops/behat-format-progress-fail
- Owner: drevops
- License: gpl-3.0
- Created: 2017-05-02T09:28:08.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T23:05:24.000Z (about 1 year ago)
- Last Synced: 2025-06-02T23:11:03.526Z (about 1 year ago)
- Topics: behat, behat-context, behat-extension, php, progress, test
- Language: PHP
- Homepage:
- Size: 88.9 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Behat Progress Fail Output Extension
[](https://github.com/drevops/behat-format-progress-fail/issues)
[](https://github.com/drevops/behat-format-progress-fail/pulls)
[](https://github.com/drevops/behat-format-progress-fail/actions/workflows/test-php.yml)



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
```bash
composer require --dev drevops/behat-format-progress-fail
```
## Usage
```bash
vendor/bin/behat --format=progress_fail
```
### Configure
>behat.yml
```yaml
default:
extensions:
DrevOps\BehatFormatProgressFail\FormatExtension: ~
```
or
>behat.yml
```yaml
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 output
- `no` - do not show the output
- `on-fail` - only show the output if there are test fails
- `in-summary` - only show in the summary if there are test fails
## Maintenance
### Lint code
```bash
composer lint
composer lint-fix
```
### Run tests
```bash
composer test
```
---
_This repository was created using the [Scaffold](https://getscaffold.dev/) project template_
