当前位置:网站首页>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报告


边栏推荐
- Won't you just stick to 62 days? Sum of words
- Machine vision Series 2: vs DLL debugging
- 一个公司的面试笔记
- 14. Haproxy+kept load balancing and high availability
- The return value of the function is the attention of the pointer, the local variables inside the static limit sub function, and how the pointer to the array represents the array elements
- Not for 58 days. Implement prefix tree
- Fuzzy query of SQL
- 数据集成这个地方的过滤条件该咋写,用的啥语法?sql语法处理bizdate可以不
- LCA board
- 11.备份交换机
猜你喜欢

15.federation

Won't you just stick to 69 days? Merge range

Two forms of softmax cross entropy + numpy implementation

不会就坚持69天吧 合并区间
![[kvm] create virtual machine from kickstart file](/img/0e/292ccb6862e29d948ad6ece86b7945.png)
[kvm] create virtual machine from kickstart file

Value transmission and address transmission of C language, pointer of pointer

全屋WiFi方案:Mesh路由器组网和AC+AP

15.federation

Not 67 days, square root

HC06 HC05 BT
随机推荐
The difference between dynamic, VaR and object in fluent
开课!看smardaten如何分解复杂业务场景
Machine vision Series 1: Visual Studio 2019 dynamic link library DLL establishment
Compilation and linking
信号处理中的反傅里叶变换(IFFT)原理
通过js来实现一元二次方程的效果,输入a,b,c系数后可计算出x1和x2的值
How to solve the problem of store ranking?
Lua language (stm32+2g/4g module) and C language (stm32+esp8266) methods of extracting relevant data from strings - collation
LCA board
不会就坚持70天吧 数组中第k大的数
It won't last for 70 days. The k-largest number in the array
Not 67 days, square root
你真的会写Restful API吗?
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)
Don't the JDBC SQL connector of the big guys Flink now support all databases, such as vertica?
Semantic segmentation correlation
Fu Yingna: Yuan universe is the new generation of Internet!
The structure pointer must be initialized, and the pointer must also be initialized
10.回退消息
BIO、NIO、AIO的区别和原理