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 ooption. 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:
The goal is to include this project in Fedora repositories. Until that happens, you can use testing builds from COPR – see “Developer links” below.
- You can also install using pip:
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 format your contribution using the FreeIPA patch guidelines, and send it to <freeipa-devel@redhat.com>. Any development discussion is welcome there.
Someday the project might get its own list, but that seems premature now.
Developer links
Bug tracker: https://fedorahosted.org/python-pytest-beakerlib/report/3
Code browser: https://git.fedorahosted.org/cgit/python-pytest-beakerlib
git clone https://git.fedorahosted.org/git/python-pytest-beakerlib.git
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.5.tar.gz
.
File metadata
- Download URL: pytest-beakerlib-0.5.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8f1f105a6214ed2ed31c021b1562749e0934cd16bbb5d1b68c842d969f87837 |
|
MD5 | 5441fd810ca12b047e3ea474ca97243a |
|
BLAKE2b-256 | 4bab22cd6204ded62f10b04245b733a80f346c06dad225b53ad8fabd75bcccd8 |
File details
Details for the file pytest_beakerlib-0.5-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_beakerlib-0.5-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 | 2ed21e70a8cc0e142e9c5c2817c9bb5e68634e9142e9e68b09204024122011e6 |
|
MD5 | 308a881240780d9133094054dbc20e06 |
|
BLAKE2b-256 | 48d6c9841b0c85da5b0d83ba1a2ab85ba8d4b0aee07c4395e0f7cc479d2b0f1c |