将运行pytest的信息推送到envvars中
pytest-env-info的Python项目详细描述
Pytest环境信息图片::https://travis-ci.org/abager/pytest-env-info.svg?branch=master
:target:https://travis ci.org/abager/pytest env info
将运行pytest的信息推送到环境中
features
--
*将运行unittests的python和pytest版本的信息注入到
环境中。这可用于为正在运行的python版本配置其他pytest插件。
设置以下环境变量:
。envvar::pytest_version
执行pytest的版本
…envvar::pytest_pyver
运行pytest的python解释器的版本
…pytest_pymajver
python解释器的主要版本。例如,python-2.7.14上的“2”和python-3.6.1上的“3”。pytest_pymajminver
python解释器的主版本和次版本。例如,“2.7”在python-2.7.14版和
“3.6”在python-3.6.1版上,以及
“3.6”在python-3.6.1版和
*pytest
——————————————————————————————————————————————欢迎。可以使用“tox”运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
请“提交问题”和详细说明。
…_` mit`:http://opensource.org/licenses/mit
。_`提交问题:https://github.com/abager/pytest env info/issues
。_` pytest`:https://github.com/pytest dev/pytest
。_` tox`:https://tox.readthedocs.io/en/latest/
。_` pip`:https://pypi.python.org/pypi/pip/
。_` pypi`:https://pypi.python.org/pypi
:target:https://travis ci.org/abager/pytest env info
将运行pytest的信息推送到环境中
features
--
*将运行unittests的python和pytest版本的信息注入到
环境中。这可用于为正在运行的python版本配置其他pytest插件。
设置以下环境变量:
。envvar::pytest_version
执行pytest的版本
…envvar::pytest_pyver
运行pytest的python解释器的版本
…pytest_pymajver
python解释器的主要版本。例如,python-2.7.14上的“2”和python-3.6.1上的“3”。pytest_pymajminver
python解释器的主版本和次版本。例如,“2.7”在python-2.7.14版和
“3.6”在python-3.6.1版上,以及
“3.6”在python-3.6.1版和
*pytest
——————————————————————————————————————————————欢迎。可以使用“tox”运行测试,请确保在提交请求之前覆盖率至少保持不变。
license
----
请“提交问题”和详细说明。
…_` mit`:http://opensource.org/licenses/mit
。_`提交问题:https://github.com/abager/pytest env info/issues
。_` pytest`:https://github.com/pytest dev/pytest
。_` tox`:https://tox.readthedocs.io/en/latest/
。_` pip`:https://pypi.python.org/pypi/pip/
。_` pypi`:https://pypi.python.org/pypi