Coder Social home page Coder Social logo

behat-cucumber-formatter's Introduction

release GitHub release (latest SemVer) GitHub

Behat Cucumber Json Formatter

Note: this is a fork of 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 which provides graphs over time and drill down to individual results using the standard Jenkins test reporting mechanism.

Requirements

  • PHP 7.3 or higher

  • Behat 3.x

Installation

Installation via Composer:

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

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:

  • 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

MIT Licence

behat-cucumber-formatter's People

Contributors

mytord avatar davidgrayston avatar smirik avatar cawolf avatar pietaj avatar mkuznetsov4xxi avatar grevenx avatar semantic-release-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.