Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/encukou/pytest-beakerlib
https://github.com/encukou/pytest-beakerlib
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/encukou/pytest-beakerlib
- Owner: encukou
- License: gpl-3.0
- Created: 2014-10-31T17:08:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-02T14:51:34.000Z (about 7 years ago)
- Last Synced: 2023-03-11T13:19:27.241Z (over 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: COPYING
Awesome Lists containing this project
README
A pytest plugin that reports test results to the BeakerLib framework.
* pytest: http://pytest.org/latest/
* BeakerLib: https://github.com/beakerlib/beakerlibOnce 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.2The 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
* git clone https://pagure.io/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... _Pagure repo: https://pagure.io/python-pytest-beakerlib