https://github.com/ratson/pytest-notifier
A pytest plugin to notify test result on Linux and OS X.
https://github.com/ratson/pytest-notifier
Last synced: 11 months ago
JSON representation
A pytest plugin to notify test result on Linux and OS X.
- Host: GitHub
- URL: https://github.com/ratson/pytest-notifier
- Owner: ratson
- Created: 2016-01-01T06:33:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T13:11:33.000Z (about 6 years ago)
- Last Synced: 2024-11-22T00:48:31.801Z (over 1 year ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/pytest-notifier
- Size: 20.5 KB
- Stars: 16
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
Awesome Lists containing this project
README
pytest-notifier
===============
.. image:: https://img.shields.io/pypi/v/pytest-notifier.svg
:target: https://pypi.python.org/pypi/pytest-notifier
:alt: Latest PyPI version
A `pytest`_ plugin to notify test result on Linux and OS X.
Requirements
------------
Linux
^^^^^
Make sure ``notify-send`` is exists in ``$PATH``,
which comes from ``libnotify``.
OS X
^^^^
OS X 10.8 and higher is required.
Optionally, you could install `terminal-notifier`_
to avoid Script Editor being opened when notification icon is clicked.
Installation
------------
You can install ``pytest-notifier`` via `pip`_ from `PyPI`_::
$ pip install pytest-notifier
Usage
-----
Once installed, notification will be shown after each test run.
By using with `pytest-watch `_,
you can get continous feedback during development::
$ ptw
You can use ``--notifier-off`` flag to disable notification::
$ pytest --notifier-off
Licence
-------
Distributed under the terms of the `MIT`_ license, ``pytest-notifier`` is free and open source software
Issues
------
If you encounter any problems, please `file an issue`_ along with a detailed description.
.. _`file an issue`: https://github.com/ratson/pytest-notifier/issues
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`terminal-notifier`: https://github.com/julienXX/terminal-notifier