1、运行脚本所有代码
pytest 01.py
2、只显示执行结果
pytest -q 01.py
若执行全部通过时
若执行有不通过时
pytest 运行脚本
原文:https://www.cnblogs.com/spritegirl/p/14809341.html