pytest下放pytest.ini文件就导致报错:ERROR: file or directory not found: #
如下:
项目文件目录如下:
pytest.ini文件内容:
[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