Extend py.test for RPC OpenStack testing.
Project description
pytest-rpc
Extend py.test for RPC OpenStack testing.
Quick Start Guide
Usage
Once installed the plug-in will automatically be loaded by all py.test test runs executed in the Python environment in which the pytest-rpc was installed.
Features
JUnitXML RPC Specific Properties
If a user executes py.test tests with the --junitxml and with this plug-in installed, the resulting XML log file will contain a test suite properties element. The properties element will contain information gathered about the test run fetched from the local environment.
Configuration
You can configure this plugin to tell it which ‘ci-environment’ you are using when you execute this test. This will let pytest-rpc know what information to collect inside of the junit.xml. If no configuration is found it will assume that you are using asc.
You can configure in an ini file that is readable by pytest (setup.cfg, pytest.ini, tox.ini):
[pytest] ci-environment=mk8s
You can configure via the command line:
pytest /path/to/test_test.py --ci-environment=asc
The current available options are ‘asc’ & ‘mk8s’
Contributing
See CONTRIBUTING.rst for more details on developing for the “pytest-rpc” project.
Release Process
See release_process.rst for information on the release process for ‘pytest-rpc’
Credits
This Pytest plugin was generated with Cookiecutter along with @hackebrot’s Cookiecutter-pytest-plugin template.
History
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pytest_rpc-0.8.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4780023c1b3a817a3ce04a5d9cb5f013dcf3f8b98f90311d30120551aa1003c |
|
MD5 | 2b1ba3a9b8ca912a3d480290a5cb783d |
|
BLAKE2b-256 | 99711d834a40a8f59848630efd0c90051ebeef9c9cf3d97e80749e83134a46b3 |