pytest执行入口 命令行执行 直接代码中执行 pytest.main(["-s", "test_demo.py", "--html", "ReportDemo.html"]) 其他参数: -v 显示所有用例执行结果列表