PHPackages                             dragoonis/behat-html-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. [Testing &amp; Quality](/categories/testing)
4. /
5. dragoonis/behat-html-formatter

ActiveLibrary[Testing &amp; Quality](/categories/testing)

dragoonis/behat-html-formatter
==============================

This will create a html formatter for Behat.

v0.1.0(11y ago)08951PHPPHP &gt;=5.3.0

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/dragoonis/BehatHtmlFormatterPlugin)[ Packagist](https://packagist.org/packages/dragoonis/behat-html-formatter)[ RSS](/packages/dragoonis-behat-html-formatter/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

BehatHtmlFormatterPlugin
========================

[](#behathtmlformatterplugin)

Suggestions are more than welcome !

This is a behat 3 extension to generate HTML reports from your test results.

Add this to your behat.yml file:

```
formatters:
    html:
        output_path: %paths.base%/build/html/behat
  extensions:
    emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
        name: html
        renderer: Twig,Behat2
        file_name: Index
        print_args: true
        loop_break: true
```

The *output* parameter is relative to %paths.base% and, when omitted, will default to that same path.

The *renderer* is the renderer engine and the report format that you want to be generated.

The *file\_name* is optional. When it is added, the report name will be fixed instead fo generated, and this file will be overwritten with every build.

Actually, there is 3 formats :

- **Twig** : new report format based on Twig, **requires Twig installed**
- **Behat2** : like Behat 2 HTML report
- **Minimal** : ultra minimal...

You must specify the format that you want to use in the *renderer* parameter.

You can combine formats to generate multiple reports with multiple formats at one time for one test suite : you just need to separate them by commas

File names have this format : *"renderer name"*\_*"date hour"*

**Twig renderer only parameters:**

The *print\_args* is optional. When it is added, the report will contain the arguments for each step if exists. (e.g. Tables)

The *print\_outp* is optional. When it is added, the report will contain the output of each step if exists. (e.g. Exceptions)

The *loop\_break* is optional. When it is added, Scenario Outlines printed to the report will have a break line separating the executions.

To be done:
===========

[](#to-be-done)

1. Add parameters for behat.yml file
2. Add bootstrap as dependency
3. clean up html report
4. Add out parameter

Screenshots
===========

[](#screenshots)

Twig :

[![](https://camo.githubusercontent.com/0ef008d88774d969ed2f514f75e7879ee9e402699b7f4f81a741e0fe8cbe4ed3/687474703a2f2f692e696d6775722e636f6d2f6f307a437169422e706e67)](https://camo.githubusercontent.com/0ef008d88774d969ed2f514f75e7879ee9e402699b7f4f81a741e0fe8cbe4ed3/687474703a2f2f692e696d6775722e636f6d2f6f307a437169422e706e67)

Behat2 :

[![](https://camo.githubusercontent.com/c5cc587370c2d3ecab4d808ab2d5e8a5e5c041db86ae48468d658088c94eb6fe/687474703a2f2f6935372e74696e797069632e636f6d2f323837673934322e6a7067)](https://camo.githubusercontent.com/c5cc587370c2d3ecab4d808ab2d5e8a5e5c041db86ae48468d658088c94eb6fe/687474703a2f2f6935372e74696e797069632e636f6d2f323837673934322e6a7067)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.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

Unknown

Total

1

Last Release

4045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9025c7b030862eabb8877bfe173b2358db04463e16d50703c6d9287e55fe5804?d=identicon)[dragoonis](/maintainers/dragoonis)

---

Top Contributors

[![dutchiexl](https://avatars.githubusercontent.com/u/4411566?v=4)](https://github.com/dutchiexl "dutchiexl (39 commits)")[![lmrafael](https://avatars.githubusercontent.com/u/2047805?v=4)](https://github.com/lmrafael "lmrafael (16 commits)")[![kwisatz](https://avatars.githubusercontent.com/u/237949?v=4)](https://github.com/kwisatz "kwisatz (10 commits)")[![legovaer](https://avatars.githubusercontent.com/u/5813212?v=4)](https://github.com/legovaer "legovaer (2 commits)")[![ich123](https://avatars.githubusercontent.com/u/419039?v=4)](https://github.com/ich123 "ich123 (2 commits)")[![throup](https://avatars.githubusercontent.com/u/1216362?v=4)](https://github.com/throup "throup (2 commits)")[![dragoonis](https://avatars.githubusercontent.com/u/146321?v=4)](https://github.com/dragoonis "dragoonis (1 commits)")

### Embed Badge

![Health badge](/badges/dragoonis-behat-html-formatter/health.svg)

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.0M129](/packages/wp-cli-wp-cli-tests)[drevops/behat-steps

Collection of steps for Behat

27409.9k4](/packages/drevops-behat-steps)

PHPackages © 2026

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