pytest使用hook函数pytest_addoption自定义命令行参数,被调用于初始化阶段,用法非常像Python的optpaser模块。 conftest.py. def pytest_addoption( ...
確定! 回上一頁