Skip to main content

A pytest plugin that reports test results to the BeakerLib framework

Project description

A pytest plugin that reports test results to the BeakerLib framework.

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:

https://pagure.io/releases/python-pytest-beakerlib/

You can also install using pip:

https://pypi.python.org/pypi/pytest-beakerlib/0.2

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.

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

pytest-beakerlib-0.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_beakerlib-0.7-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-beakerlib-0.7.tar.gz.

File metadata

File hashes

Hashes for pytest-beakerlib-0.7.tar.gz
Algorithm Hash digest
SHA256 baa94f1620708481c5af7d94478590649c43a35cedb73bf04ef5c925a7855b8d
MD5 b7047624c1abcadfe088eda13f633fd0
BLAKE2b-256 c7929a22b02932eac9a8490b48bf88b0b50a2aa7a3e4ba02ca17c887372bd2a5

See more details on using hashes here.

File details

Details for the file pytest_beakerlib-0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_beakerlib-0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 74597e9702af4cbd9872dc6e28492f53f39352719494dacef2034db66b818bad
MD5 cbf692eae0646bd500bc71c9eac2f629
BLAKE2b-256 d83f1d8e744d3c763c20bbc160cad075eae80cfe435af164e354a15e08e401ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page