Metadata-Version: 2.4
Name: pytest-pastebin
Version: 1.0.0
Summary: Submit pytest failure or test session information to a pastebin service
Author: pytest development team
Maintainer-email: Ran Benita <ran@unusedvar.com>
License-Expression: MIT
Project-URL: Repository, https://github.com/pytest-dev/pytest-pastebin
Classifier: Framework :: Pytest
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Requires-Python: >=3
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: pytest>=7
Dynamic: license-file

===============
pytest-pastebin
===============

.. image:: https://img.shields.io/pypi/v/pytest-pastebin.svg
    :target: https://pypi.org/project/pytest-pastebin
    :alt: PyPI version

.. image:: https://github.com/pytest-dev/pytest-pastebin/actions/workflows/test.yml/badge.svg
    :target: https://github.com/pytest-dev/pytest-pastebin/actions/workflows/test.yml
    :alt: See Build Status on GitHub Actions

Submit pytest failure or test session information to a pastebin service.

The pastebin service used is https://bpa.st/.

This plugin has been extracted from pytest's core in version 9.1.0.


Installation
------------

You can install "pytest-pastebin" via `pip`_ from `PyPI`_::

    $ pip install pytest-pastebin


Usage
-----

::

    $ pytest --pastebin=failed  # Send failed info to bpa.st pastebin service
    ...
    pastebin session-log: https://bpa.st/show/QUUX

    $ pytest --pastebin=all     # Send all info to bpa.st pastebin service
    ...
    pastebin session-log: https://bpa.st/show/THUD


License
-------

Distributed under the terms of the `MIT`_ license, "pytest-pastebin" is free and open source software.


.. _`MIT`: https://opensource.org/licenses/MIT
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project
