Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chineseluo/behave_to_cucumber
由于原作者对于behave2cucumber没有进行维护了,重写一个转换的公共库,用于将behave框架生成的behave.json转换为cucumber.json
https://github.com/chineseluo/behave_to_cucumber
Last synced: about 1 month ago
JSON representation
由于原作者对于behave2cucumber没有进行维护了,重写一个转换的公共库,用于将behave框架生成的behave.json转换为cucumber.json
- Host: GitHub
- URL: https://github.com/chineseluo/behave_to_cucumber
- Owner: chineseluo
- License: mit
- Created: 2022-07-05T02:56:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T02:22:52.000Z (over 1 year ago)
- Last Synced: 2024-09-29T07:20:58.082Z (about 2 months ago)
- Language: Python
- Size: 64.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# behave_to_cucumber
由于原作者对于behave_to_cucumber没有进行维护了,有一些bug需要进行修复,所以单开一个仓库用于维护,如果有问题,可以提issue
- 感谢原作者:andreybehalf
- 原项目地址:https://github.com/behalf-oss/behave_to_cucumber## 介绍
该项目主要用于将behave框架生成的behave.json转换为cucumber.json## 使用示例
~~~
import json
import behave_to_cucumber
with open('behave_json.json') as behave_json:
cucumber_json = behave_to_cucumber.convert(json.load(behave_json),remove_background=True)
~~~covert内置三个参数用于控制生成的cucumber.json报告
- remove_background:删除前置条件,默认False
- duration_format:持续时间格式化,默认False
- deduplicate:重复数据消除,默认False## 从bash运行
感谢 @lawnmowerlatte 添加了 Main ,现在您可以运行:~~~
python -m behave2cucumber
~~~