当前位置: 首页 > article >正文

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

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


http://www.kler.cn/a/562113.html

相关文章:

  • 开发一个交易所需要哪些技术?
  • C/C++语言知识点二
  • HWUI 和 Skia
  • 要实现将JSON格式数据动态生成思维导图图片,可以使用`pygraphviz`库结合`json`解析。以下是完整实现代码:
  • 第二十:【路由的props配置】
  • Web自动化之Selenium下Chrome与Edge的Webdriver常用Options参数
  • 关于命令行下的 git( git add、git commit、git push)
  • libxls库的编译以及基于Visual studio的配置
  • 使用串口工具实现tcp与udp收发
  • 【嵌入式】STM32内部NOR Flash磨损平衡与掉电保护总结
  • Maven 依赖管理基础(二)
  • cs106x-lecture13(Autumn 2017)-SPL实现
  • springcloud和dubbo的区别
  • 读论文:Generation of 3D molecules in pockets via a language model (Lingo3Dmol)
  • 前端页面什么是全屏嵌入/什么是局部嵌入
  • Pytorch实现之混合成员GAN训练自己的数据集
  • 事务管理-01.事务回顾-spring事务管理
  • 在职考研可行性探索
  • 小智AI桌宠机器狗
  • 【Golang】go语言异常处理快速学习