1. py.test test_class.py --resultlog=./log.txt
2.生成html格式
py.test test_class.py --html=./report.html
1. py.test test_class.py --resultlog=./log.txt
2.生成html格式
py.test test_class.py --html=./report.html
转载于:https://www.cnblogs.com/alamZ/p/6813724.html