Skip to content

porx/behave2cucumber

 
 

Repository files navigation

Behave to Cucumber formatter

This project helps solving the incompatibilty of Behave's genereated json reports to tools using Cucumber json reports. Its done by reformatting the Behave json to Cucumber json. This script was developed during work on automation tools for Behalf inc. automation team. The script was developed and tested on Python 2.7, you're welcome to use this script and format it to other python versions.

For easy install use: "pip install behave2cucumber"

Example of usage:
import json
import behave2cucumber
with open('behave_json.json') as behave_json:
    cucumber_json = behave2cucumber.convert(json.load(behave_json))

Running from bash

Main has been added thanks to @lawnmowerlatte and now you can run:
python -m behave2cucumber

Running tests

To run tests:
./test_script

About

Behave to Cucumber converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.6%
  • Makefile 2.8%
  • Shell 0.6%