PHPackages                             seretos/behat-json-formatter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. seretos/behat-json-formatter

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

seretos/behat-json-formatter
============================

this library extends behat with an json formatter and publish commands to manage this generated json files

v0.0.9(8y ago)01.9kMITPHPPHP &gt;=5.6

Since Feb 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Seretos/BehatJsonFormatter)[ Packagist](https://packagist.org/packages/seretos/behat-json-formatter)[ Docs](https://github.com/Seretos/BehatJsonFormatter)[ RSS](/packages/seretos-behat-json-formatter/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (11)Versions (11)Used By (0)

BehatJsonFormatter
==================

[](#behatjsonformatter)

[![Build Status](https://camo.githubusercontent.com/6ed661b1c8890551788406f4fdfbc8cb2a0851acb72702779ca6db78caed99cc/68747470733a2f2f7472617669732d63692e6f72672f53657265746f732f42656861744a736f6e466f726d61747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Seretos/BehatJsonFormatter)

this library extend the behat library with an json formatter. this formatter generate for every suite an json format the executed features,scenarios and steps. the library also saved the executed environment (firefox,IE,...) result. Every browserless environment will be saved as "unknown"

this library provides also different commands to validate and merge multiple generated json files.

Installation
------------

[](#installation)

execute the following command as below

```
$ composer require seretos/BehatJsonFormatter
```

Usage
-----

[](#usage)

add the following lines to your behat config yml

```
...
  extensions:
    seretos\BehatJsonFormatter\BehatJsonFormatterExtension:
      output_path: '%paths.base%/build/behat'
      #step_screenshots: true #save a screenshot for every selenium step
```

now your execution generates for every suite an json file into the output-path. if you run multiple tests on different machines, you can use the following commands to manage your json results:

```
$ php vendor/bin/behat-json behat:double:result:check --jsonDir=./artifacts1 \
                                                      --jsonDir=./artifacts2 \
                                                      --pattern="/[\w]*php71/"
```

this command search in the given directories and with pattern for json files and check, that every test only executed one time per environment

```
php vendor/bin/behat-json behat:merge:result --jsonDir=./artifacts1 \
                                             --jsonDir=./artifacts2 \
                                             --pattern="/[\w]*php71/" \
                                             --output=result.json
```

```
php vendor/bin/behat-json behat:validate:result --json=./result.json \
                                                --featureDir=./features
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

10

Last Release

2994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1956f0019585e067a8c17676304b6f9442aa9c495c81d4294f5805940ed3fd12?d=identicon)[Seretos](/maintainers/Seretos)

---

Top Contributors

[![Seretos](https://avatars.githubusercontent.com/u/18718900?v=4)](https://github.com/Seretos "Seretos (12 commits)")

---

Tags

jsonformatterBehat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seretos-behat-json-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/seretos-behat-json-formatter/health.svg)](https://phpackages.com/packages/seretos-behat-json-formatter)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
