pytest-env-info

Push information about the running pytest into envvars


License
MIT
Install
pip install pytest-env-info==0.3.0

Documentation

pytest-env-info

Unittest results on Travis-ci

Push information about the running pytest into the environment

Features

  • Injects information about the Python and Pytest versions that are running the unittests into the environment. This can be used for configuring other pytest plugins for the Python version being run on.

The following environment variables are set:

PYTEST_VERSION
The version of the executing pytest
PYTEST_PYVER
The version of the Python interpreter running pytest
PYTEST_PYMAJVER
The major version of the Python interpreter. For instance, "2" on Python-2.7.14 and "3" for Python-3.6.1.
PYTEST_PYMAJMINVER
The major and minor version of the Python interpreter. For instance, "2.7" on Python-2.7.14 and "3.6" for Python-3.6.1.

Requirements

  • Pytest

Installation

You can install "pytest-env-info" via pip from PyPI:

$ pip install pytest-env-info

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the MIT license, "pytest-env-info" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.