当前位置:网站首页>6.pytest生成allure报告
6.pytest生成allure报告
2022-07-29 04:18:00 【八千流。】
pytest生成allure报告
1.下载allure
- mac下载方式:
brew install allure
2.python环境安装allure-pytest
pip install allure-pytest安装allure-pytest包pip list查看当前环境安装的哪些包,可查看到刚刚安装的allure-pytest包
3.执行命令,将用例执行结果生成allure的json数据集
pytest --alluredir ./reports/result --clean-alluredir--alluredir ./reports/result指定报告的目录路径--clean-alluredir如果已经存在报告,就先清空它
4.终端执行命令,生成指定html报告
allure generate reports/result -o reports/html --clean- allure generate 使用生成测试结果数据 -o 生成报告的路径 --clean
--clean表示:如果已经存在生成报告路径文件夹时,再次使用会提示添加–clean参数来重写
5.使用浏览器打开allure报告


边栏推荐
- Pat a1069/b1019 the black hole of numbers
- 请问,在sql client中,执行insert into select from job时,如何单
- Incubator course design (April 12, 2021)
- 15.federation
- How to write the filter conditions of data integration and what syntax to use? SQL syntax processing bizdate can not be
- 不会就坚持60天吧 神奇的字典
- Compilation and linking
- Don't insist on 66 days. Weight generates random numbers
- LCA 板子
- “蔚来杯“2022牛客暑期多校训练营2 H
猜你喜欢

开课!看smardaten如何分解复杂业务场景
![[hands on deep learning] environment configuration (detailed records, starting from the installation of VMware virtual machine)](/img/fe/8c707c30c734de7bb76ea68134842c.png)
[hands on deep learning] environment configuration (detailed records, starting from the installation of VMware virtual machine)

Machine vision Series 1: Visual Studio 2019 dynamic link library DLL establishment

不会就坚持67天吧 平方根

Can you really write restful API?
![[Openstack] keystone,nova](/img/de/70b654a29a813c8fe828c4018bd4e7.png)
[Openstack] keystone,nova

How to solve the problem of store ranking?

Beginner: array & String

不会就坚持64天吧 查找插入位置

Jenkins 参数化构建中 各参数介绍与示例
随机推荐
(.*?) regular expression
%s. %c, character constant, string constant, const char*, pointer array, string array summary
SQL server how to judge when the parameter received by the stored procedure is of type int?
Svg -- loading animation
[kvm] create virtual machine from kickstart file
openFeign异步调用问题
Do you have a boss to help me check whether the parameter configuration of the Flink SQL connection Kafka authentication Kerberos is wrong
Semantic segmentation correlation
12. Priority queue and inert queue
Common components of solder pad (2021.4.6)
How to write the filter conditions of data integration and what syntax to use? SQL syntax processing bizdate can not be
It won't last for 65 days. It only appears once
Is there any way for Youxuan database to check the log volume that the primary cluster transmits to the standby cluster every day?
Installation and use of stm32cubemx (5.3.0)
Implementation of jump connection of RESNET (pytorch)
编译与链接
Function pointer and callback function
不会就坚持65天吧 只出现一次的数字
从淘宝,天猫,1688,微店,京东,苏宁,淘特等其他平台一键复制商品到拼多多平台(批量上传宝贝详情接口教程)
SQL time fuzzy query datediff() function