Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/behalf-oss/behave2cucumber
Behave to Cucumber converter
https://github.com/behalf-oss/behave2cucumber
behalf behave converter cucumber
Last synced: 3 days ago
JSON representation
Behave to Cucumber converter
- Host: GitHub
- URL: https://github.com/behalf-oss/behave2cucumber
- Owner: behalf-oss
- License: mit
- Created: 2016-11-23T10:09:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T11:57:37.000Z (6 months ago)
- Last Synced: 2024-09-21T18:50:00.867Z (12 days ago)
- Topics: behalf, behave, converter, cucumber
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 23
- Watchers: 7
- Forks: 21
- Open Issues: 8
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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:
.. code-block:: pythonimport 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:
.. code-block:: bash
python -m behave2cucumberRunning tests
-------------------------
To run tests:
.. code-block:: bash
./test_script