摘要:
1 pytest xxxx 2 python -m pytest xxxx python -m pytest --html=./report/rep2.html test_env_pytest_ini.py 这个与pytest几乎是相同的,官网是这样说的 3 python pytest xxx 这与 阅读全文
摘要:
一、pytest有很多命令行选项如 -v 输出详细信息 -q 简要输出 -s 打印输出 -k "xxx" 在file name、class name、function name来匹配xxx规则,pytest只运行符合匹配结果的部分 -m xx 寻找具有xx mark的test来运行或不运行 -x 遇 阅读全文