allure测试报告用例数和 pytest执行用例数不相同问题

  1. 我出现的奇怪问题

    1. pytest执行了9条用例,但是测试报告确只显示3条用例
    2. 我将其中的一个代码删除后,发现allure测试报告又正常了
    3. 我觉得很奇怪这个代码只是删除了二维数组的第一列,我检查了半天都找不到问题,只有降低版本了。
  2. 导致原因:allure-pytest版本使用的是最新版本,pytest也使用的是最新版本。

    • 说明:在使用最新版本的时候容易出现各种各样奇怪问题。
  3. 解决办法:降低到上一个版本看是否还出现问题。

    • 注意:降低allure-pytest版本,但是也需要同时降低依赖allure-pytest插件的版本。
    • 我使用的版本:allure-pytest 2.13.5 pytest 8.2.1 allure 2.29.0
    • 我将全部都降低一个小版本后正常了
    • 降低为: allure-pytest: 2.12.0 pytest 7.4.4 allure 2.28.0
    • 测试结果:正常
相关推荐
我一定会有钱6 小时前
pytest基础
python·测试工具·测试用例·pytest
西游音月6 小时前
(6)pytest+Selenium自动化测试-测试用例编写
selenium·测试用例·pytest
兴趣使然黄小黄2 天前
【Pytest】Pytest框架快速入门
python·pytest
m0_632482503 天前
Jenkins + Pytest +allure接口自动化测试配置与操作
jenkins·集成测试·pytest·jenkins配置
李星星BruceL3 天前
Pytest第三章(参考指南1)
python·自动化·pytest
哎呀呦呵3 天前
pytest基本使用
python·pytest
Kristen_YXQDN3 天前
PyCharm 中 pytest 运行 python 测试文件报错:D:\Python_file\.venv\Scripts\python.exe: No module named pytest
运维·开发语言·python·pycharm·pytest
Low--Key3 天前
pytest框架快速入门
python·自动化·pytest
姜西西_3 天前
自动化测试框架pytest之fixture
android·java·pytest
测试开发Kevin3 天前
超级实用!汇总pytest中那些常用的参数
单元测试·pytest