PHPackages                             cawolf/behat-cucumber-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. cawolf/behat-cucumber-json-formatter

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

cawolf/behat-cucumber-json-formatter
====================================

Behat extension for generating json reports

v1.5.1(5y ago)3649.1k—4.3%8[2 PRs](https://github.com/cawolf/behat-cucumber-formatter/pulls)MITPHPPHP &gt;=7.3

Since Oct 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/cawolf/behat-cucumber-formatter)[ Packagist](https://packagist.org/packages/cawolf/behat-cucumber-json-formatter)[ Docs](https://github.com/cawolf/behat-cucumber-formatter)[ RSS](/packages/cawolf-behat-cucumber-json-formatter/feed)WikiDiscussions master Synced 1mo ago

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

[![release](https://github.com/cawolf/behat-cucumber-formatter/workflows/release/badge.svg)](https://github.com/cawolf/behat-cucumber-formatter/workflows/release/badge.svg)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/c82fee67edc93131be8b1c829e74ea0d2037de83eca99dc34fef7a2851eb8498/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6361776f6c662f62656861742d637563756d6265722d666f726d6174746572)](https://camo.githubusercontent.com/c82fee67edc93131be8b1c829e74ea0d2037de83eca99dc34fef7a2851eb8498/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6361776f6c662f62656861742d637563756d6265722d666f726d6174746572)[![GitHub](https://camo.githubusercontent.com/89f94dd925cd5342b137fb85d8d012213a8df499eea2d47d0039957d8a9516f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6361776f6c662f62656861742d637563756d6265722d666f726d6174746572)](https://camo.githubusercontent.com/89f94dd925cd5342b137fb85d8d012213a8df499eea2d47d0039957d8a9516f1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6361776f6c662f62656861742d637563756d6265722d666f726d6174746572)

Behat Cucumber Json Formatter
=============================

[](#behat-cucumber-json-formatter)

*Note*: this is a fork of [Vanare/behat-cucumber-formatter](https://github.com/Vanare/behat-cucumber-formatter). As the original project seems unmaintained and there is no possibility to contact the owner, I publish the library under my handle. Many thanks to the original team of Vanare for starting this great library!

This is Behat extension for generating json reports for [Cucumber Test Result Plugin](https://github.com/jenkinsci/cucumber-testresult-plugin/) which provides graphs over time and drill down to individual results using the standard Jenkins test reporting mechanism.

Requirements
------------

[](#requirements)

- PHP 7.3 or higher
- Behat 3.x

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

[](#installation)

### Installation via Composer:

[](#installation-via-composer)

```
$ composer require --dev cawolf/behat-cucumber-json-formatter

```

Usage
-----

[](#usage)

Setup extension by specifying your `behat.yml`:

```
default:
    extensions:
        Vanare\BehatCucumberJsonFormatter\Extension:
            fileNamePrefix: report
            resultFilePerSuite: true
            outputDir: %paths.base%/build/tests

```

Then you can run:

```
bin/behat -f cucumber_json

```

### Available options:

[](#available-options)

- `fileNamePrefix`: Filename prefix of generated report
- `outputDir`: Generated report will be placed in this directory
- `fileName` *(optional)*: Filename of generated report - current feature name will be used by default. Only applicable when `resultFilePerSuite` is not enabled.
- `resultFilePerSuite` *(optional)*: The default behaviour is to generate a single report named `all.json`. If this option is set to `true`, a report will be created per behat suite.

Licence
-------

[](#licence)

MIT Licence

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% 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 ~238 days

Recently: every ~318 days

Total

9

Last Release

1950d ago

PHP version history (4 changes)v1.0PHP &gt;=5.5.0

v1.2.1PHP &gt;=5.6

v1.5.0PHP &gt;=7.2

v1.5.1PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/58fb41ad66c6b45096cad21d54aa1aacabcb9eedc8974664e1e6776327662816?d=identicon)[cawolf](/maintainers/cawolf)

---

Top Contributors

[![mytord](https://avatars.githubusercontent.com/u/7060998?v=4)](https://github.com/mytord "mytord (66 commits)")[![auxwolf](https://avatars.githubusercontent.com/u/221138836?v=4)](https://github.com/auxwolf "auxwolf (6 commits)")[![davidgrayston](https://avatars.githubusercontent.com/u/1229335?v=4)](https://github.com/davidgrayston "davidgrayston (5 commits)")[![smirik](https://avatars.githubusercontent.com/u/354907?v=4)](https://github.com/smirik "smirik (4 commits)")[![cawolf](https://avatars.githubusercontent.com/u/1932623?v=4)](https://github.com/cawolf "cawolf (4 commits)")[![mkuznetsov4xxi](https://avatars.githubusercontent.com/u/26814492?v=4)](https://github.com/mkuznetsov4xxi "mkuznetsov4xxi (2 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (1 commits)")[![grEvenX](https://avatars.githubusercontent.com/u/26375?v=4)](https://github.com/grEvenX "grEvenX (1 commits)")

---

Tags

jsonformatterjenkinsBehatCucumber

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[behat/gherkin

Gherkin DSL parser for PHP

1.1k176.3M97](/packages/behat-gherkin)[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[ergebnis/json-printer

Provides a JSON printer, allowing for flexible indentation.

9138.2M24](/packages/ergebnis-json-printer)

PHPackages © 2026

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