2021
05-02
05-02
pytest配置文件pytest.ini的详细使用
前言pytest配置文件可以改变pytest的运行方式,它是一个固定的文件pytest.ini文件,读取配置信息,按指定的方式去运行非test文件pytest里面有些文件是非test文件pytest.ini:pytest的主配置文件,可以改变pytest的默认行为conftest.py:测试用例的一些fixture配置_init_.py:识别该文件夹为python的package包查看pytest.ini的配置选项cmd执行pytest--help找到这部分内容[pytest]ini-optionsinthefirstpytest.ini...
继续阅读 >