2009-07-21 00:54:08 +08:00
|
|
|
|
|
|
|
pytest_unittest plugin
|
|
|
|
======================
|
|
|
|
|
|
|
|
automatically discover and run traditional "unittest.py" style tests.
|
|
|
|
|
2009-07-22 22:09:49 +08:00
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
2009-07-21 00:56:02 +08:00
|
|
|
Usage
|
|
|
|
----------------
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-07-21 00:56:02 +08:00
|
|
|
This plugin collects and runs Python `unittest.py style`_ tests.
|
|
|
|
It will automatically collect ``unittest.TestCase`` subclasses
|
|
|
|
and their ``test`` methods from the test modules of a project
|
|
|
|
(usually following the ``test_*.py`` pattern).
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-07-21 00:56:02 +08:00
|
|
|
This plugin is enabled by default.
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-07-21 00:56:02 +08:00
|
|
|
.. _`unittest.py style`: http://docs.python.org/library/unittest.html
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-07-22 22:09:49 +08:00
|
|
|
Start improving this plugin in 30 seconds
|
|
|
|
=========================================
|
2009-07-21 00:54:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
1. Download `pytest_unittest.py`_ plugin source code
|
|
|
|
2. put it somewhere as ``pytest_unittest.py`` into your import path
|
2009-07-22 22:09:49 +08:00
|
|
|
3. a subsequent ``py.test`` run will use your local version
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-08-19 01:04:57 +08:00
|
|
|
Checkout customize_, other plugins_ or `get in contact`_.
|
2009-07-21 00:54:08 +08:00
|
|
|
|
2009-07-31 20:43:04 +08:00
|
|
|
.. include:: links.txt
|