pytest下放pytest.ini文件就导致报错:ERROR: file or directory not found: #

pytest下放pytest.ini文件就导致报错:ERROR: file or directory not found: #

如下:

项目文件目录如下:

pytest.ini文件内容:

python 复制代码
[pytest]
addopts = -v -s --alluredir = ./allure-results  # 自动添加的命令行参数:
                                              # -v:详细输出
                                              # -s:打印输出信息
                                              # --alluredir:指定Allure结果保存目录
testpaths = test_cases       # 指定测试目录
python_files = test_*.py     # 匹配测试文件模式

怎么改路径就是报错,没办法只能把这个文件pytest.ini去掉l,在cmd里手动写执行命令了pytest -vs --alluredir=./result/ --clean-alluredir

allure generate ./result2 -o ./report2 --clean

相关推荐
落魄大学生之流水线上谋生计7 小时前
pytest 入门与实践:从第一个测试到可维护的测试体系
pytest
念越2 天前
Allure 测试报告保姆级教程:从安装到 pytest 集成与报告生成
pytest·allure
念越2 天前
接口自动化测试从入门到实战:接口用例设计、Requests、Pytest、YAML、JSON Schema 与 Allure 报告
python·测试工具·自动化·json·pytest
霍格沃兹测试学院-小舟畅学6 天前
AI+Swagger:一键生成500条pytest接口用例
人工智能·pytest
把头塞进显示器15 天前
电商平台-测试报告
python·selenium·pytest
昔我往昔20 天前
pytest日志问题排查记录
python·pytest
黄昏恋慕黎明23 天前
博客论坛技术迭代
python·pytest
2601_9620782323 天前
Python接口自动化流程(pytest)
python·pytest·接口自动化·测试框架·断言
杨女士YRJ23 天前
python+pytest+01
python·pytest
2601_9620782324 天前
Python接口自动化框架:pytest
python·pytest·接口自动化·测试框架·restfulapi