pytest

2020-11-17  本文已影响0人  绛珠仙靖

执行命令:

1. 用括号的格式,需要绝对路径: pytest.main ("-v -s test\\test_pre0.py --alluredir ./report ")

2. 用中括号的格式,需要根本路径: pytest.main(['-v','-s', 'c\\ test.py', '--alluredir', './report'])

上一篇 下一篇

猜你喜欢

热点阅读