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.

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:

https://fedorahosted.org/released/python-pytest-beakerlib/

The goal is to include this project in Fedora repositories. Until that happens, you can use testing builds from COPR – see “Developer links” below.

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, if you have the rights.

[patch guidelines]: http://www.freeipa.org/page/Contribute/Patch_Format

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.2.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

pytest_beakerlib-0.2-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for pytest-beakerlib-0.2.tar.gz
Algorithm Hash digest
SHA256 0ef364f09ae9aa4b6d62ecc0a43da216d05d33fb10738fae554cb2aa9c80f8e5
MD5 f8582f2146dfd67d886466e50c2df7c3
BLAKE2b-256 8f27f09eba2a9ee85e826c9faa356ad6ff12f7ffdde5eab98d7c3c5ade79c264

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_beakerlib-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e1f1ca332c7aee1b204456a9bb774cbe22b9489ae3d5e57501d931785d2273a1
MD5 eae6037aac592168e2ad43cfb26393c9
BLAKE2b-256 535465528d82dc00a5e1882e6cec811bd187b6624e1043cfc211d24b761b9ffe

See more details on using hashes here.

Supported by

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