allure-pytest
时间: 2023-08-22 14:14:31 浏览: 107
allure-pytest是一个用于生成allure测试报告的pytest插件。在早些时候,人们通常会选择安装pytest-allure-adaptor插件来生成allure测试报告。然而,由于pytest-allure-adaptor版本过低不兼容当前版本的allure,现在更常见的做法是安装allure-pytest插件来生成allure测试报告。\[1\]
在执行pytest命令生成allure报告时,经常会使用--clean-alluredir参数,该参数的作用是清除之前创建的allure测试报告原始数据,包括environment.properties文件。\[2\]
执行完测试后,不需要直接执行allure serve命令来开启allure服务,而是应该执行allure generate命令来生成测试报告。具体操作是先执行allure generate ./allure_results命令,这将生成一个名为allure-report的新文件夹,其中包含生成的测试报告。\[3\]
#### 引用[.reference_title]
- *1* *2* *3* [Pytest系列——allure(原理)之allure工具与Pytest测试框架集成](https://blog.csdn.net/mashang_z111/article/details/127540530)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![-](https://img-home.csdnimg.cn/images/20210720083447.png)
![-](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)