执行allure报错误:MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.

执行allure报错误:MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.

错误:

一堆warning,pytest没有执行,错误截图如下:

执行allure报错误:MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.

 问题原因:

 有运行警告了,测试也不运行了,因此运行的时候忽略warning。

解决办法:

 运行时,增加:-p no:warning

 pytest --alluredir=../results -s -v -p no:warnings

再次运行,问题解决!

参考:https://blog.csdn.net/bugkill/article/details/87805767