pytest: error: unrecognized argu

2019-11-09  本文已影响0人  Leoguo小哥

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]

pytest: error: unrecognized arguments: --allure=./report

  inifile: None

  rootdir: /home/deploy/test_dir/test_cases/back-one/test_collection

证明pytest 传参错误,需要你 --allure=./report的./report传递一个具体路径

pytest --alluredir=/home/deploy/test_dir/test_cases/back-one/test_collection/report

上一篇 下一篇

猜你喜欢

热点阅读