2009-08-03 18:16:12 +08:00
|
|
|
|
|
|
|
submit failure or test session information to a pastebin service.
|
2010-01-13 23:00:33 +08:00
|
|
|
=================================================================
|
|
|
|
|
2009-08-03 18:16:12 +08:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
Usage
|
|
|
|
----------
|
|
|
|
|
|
|
|
**Creating a URL for each test failure**::
|
|
|
|
|
|
|
|
py.test --pastebin=failed
|
|
|
|
|
2009-08-19 01:04:57 +08:00
|
|
|
This will submit test run information to a remote Paste service and
|
2009-08-03 18:16:12 +08:00
|
|
|
provide a URL for each failure. You may select tests as usual or add
|
|
|
|
for example ``-x`` if you only want to send one particular failure.
|
|
|
|
|
|
|
|
**Creating a URL for a whole test session log**::
|
|
|
|
|
|
|
|
py.test --pastebin=all
|
|
|
|
|
|
|
|
Currently only pasting to the http://paste.pocoo.org service is implemented.
|
|
|
|
|
|
|
|
command line options
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
|
|
|
|
``--pastebin=mode``
|
|
|
|
send failed|all info to Pocoo pastebin service.
|
|
|
|
|
|
|
|
Start improving this plugin in 30 seconds
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
|
|
|
|
1. Download `pytest_pastebin.py`_ plugin source code
|
|
|
|
2. put it somewhere as ``pytest_pastebin.py`` into your import path
|
|
|
|
3. a subsequent ``py.test`` run will use your local version
|
|
|
|
|
2009-08-19 01:04:57 +08:00
|
|
|
Checkout customize_, other plugins_ or `get in contact`_.
|
2009-08-03 18:16:12 +08:00
|
|
|
|
|
|
|
.. include:: links.txt
|