A pytest plugin that reports test results to the BeakerLib framework
Project description
A pytest plugin that reports test results to the BeakerLib framework.
pytest: http://pytest.org/latest/
BeakerLib: https://fedorahosted.org/beakerlib/
Once installed, this plugin can be activated via the --with-beakerlib option. This requires a BeakerLib session (i.e. rlJournalStart should have been run, so that $BEAKERLIB is set)
Downloading
- Release tarballs are available for download from Fedora Hosted:
- You can also install using pip:
The plugin is also available in Fedora repositories as python3-pytest-beakerlib.
Operation
A Bash process is run on the side, and BeakerLib commands (rlPhaseStart, rlPhaseEnd, rlPass, rlFail, …) are fed to it. This is not very elegant, but since BeakerLib commands are Bash functions, there is no way around running Bash.
Integration
Other plugins may integrate with this using pytest’s config.pluginmanager.getplugin('BeakerLibPlugin'). If this is None, BeakerLib integration is not active, otherwise the result’s run_beakerlib_command method can be used to run additional commands.
Contributing
The project is happy to accept patches! Please file any patches as Pull Requests on the project’s Pagure repo. Any development discussion should be in Pagure Pull Requests and Issues.
Developer links
Bug tracker: https://pagure.io/python-pytest-beakerlib/issues
Code browser: https://pagure.io/python-pytest-beakerlib/tree/master
Unstable packages for Fedora: https://copr.fedoraproject.org/coprs/pviktori/pytest-plugins/
To release, update version in setup.py, add a Git tag like “v0.3”, and run make tarball. Running make upload will put the tarball to Fedora Hosted and PyPI, and a SRPM on Fedorapeople, if you have the rights. Running make release will upload and fire a COPR build.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest-beakerlib-0.7.tar.gz
.
File metadata
- Download URL: pytest-beakerlib-0.7.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa94f1620708481c5af7d94478590649c43a35cedb73bf04ef5c925a7855b8d |
|
MD5 | b7047624c1abcadfe088eda13f633fd0 |
|
BLAKE2b-256 | c7929a22b02932eac9a8490b48bf88b0b50a2aa7a3e4ba02ca17c887372bd2a5 |
File details
Details for the file pytest_beakerlib-0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_beakerlib-0.7-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74597e9702af4cbd9872dc6e28492f53f39352719494dacef2034db66b818bad |
|
MD5 | cbf692eae0646bd500bc71c9eac2f629 |
|
BLAKE2b-256 | d83f1d8e744d3c763c20bbc160cad075eae80cfe435af164e354a15e08e401ff |