阅读背景:

pytest以编程方式更改pytest.ini的默认值

来源:互联网 

We are using pytest for test automation and have a pytest plugin. The question i have is, i would like to modify the test collection default for anyone using the plugin. By default pytest only collects methods with class name beginning with Test, this can be modified by adding pytest.ini file in the rootdir, where the tests are. However, i would like to change this default for anyone using my plugin so they dont have to add the pytest.ini file. Looking for a hook to modify this default, or read it in from somewhere else within the plugin.We are using pytest for test automation and hav




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: