Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

๐Ÿงช Behat output formatter to show progress as TAP and failures inline

Awesome Lists containing this project

README

        



Behat Progress Fail Output logo

Behat Progress Fail Output Extension

[![GitHub Issues](https://img.shields.io/github/issues/drevops/behat-format-progress-fail.svg)](https://github.com/drevops/behat-format-progress-fail/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/drevops/behat-format-progress-fail.svg)](https://github.com/drevops/behat-format-progress-fail/pulls)
[![Test](https://github.com/drevops/behat-format-progress-fail/actions/workflows/test-php.yml/badge.svg)](https://github.com/drevops/behat-format-progress-fail/actions/workflows/test-php.yml)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/drevops/behat-format-progress-fail)
![LICENSE](https://img.shields.io/github/license/drevops/behat-format-progress-fail)
![Renovate](https://img.shields.io/badge/renovate-enabled-green?logo=renovatebot)

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
```

![Output in CI](https://cloud.githubusercontent.com/assets/378794/26039517/1765b812-395f-11e7-9932-dd1aa43a97d4.png)

## 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: ~
```

## Maintenance

### Lint code

```bash
composer lint
composer lint-fix
```

### Run tests

```bash
composer test
```

---
Repository created using https://getscaffold.dev/ project scaffold template