安装显示UI界面
pip install pytest-commander
pytest_commander /path/to/your/tests
UI界面
注意事项
- pytest_commander 依赖 greenlet 库,如果使用默认安装,运行
pytest_commander /path/to/your/tests
时会提示 greenlet 库找不到,需要安装低版本的库. greenlet==1.1.2 可用 - 测试用例的脚本名称、测试类名称、函数名称需要符合pytest规范,以 test/Test 开头
相关依赖