~crunch.io/ubuntu/precise/codespeak-lib/unstable

« back to all changes in this revision

Viewing changes to doc/test/plugin/unittest.txt

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-08-01 16:24:01 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100801162401-g37v49d1p148alpm
Tags: 1.3.3-1
* New upstream release.
* Bump Standards-Version to 3.9.1.
* Fix typo in py.test manpage.
* Prefer Breaks: over Conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
Usage
10
10
----------------
11
11
 
12
 
This plugin collects and runs Python `unittest.py style`_ tests. 
13
 
It will automatically collect ``unittest.TestCase`` subclasses 
 
12
This plugin collects and runs Python `unittest.py style`_ tests.
 
13
It will automatically collect ``unittest.TestCase`` subclasses
14
14
and their ``test`` methods from the test modules of a project
15
 
(usually following the ``test_*.py`` pattern). 
 
15
(usually following the ``test_*.py`` pattern).
16
16
 
17
 
This plugin is enabled by default. 
 
17
This plugin is enabled by default.
18
18
 
19
19
.. _`unittest.py style`: http://docs.python.org/library/unittest.html
20
20
 
22
22
=========================================
23
23
 
24
24
 
25
 
1. Download `pytest_unittest.py`_ plugin source code 
26
 
2. put it somewhere as ``pytest_unittest.py`` into your import path 
 
25
1. Download `pytest_unittest.py`_ plugin source code
 
26
2. put it somewhere as ``pytest_unittest.py`` into your import path
27
27
3. a subsequent ``py.test`` run will use your local version
28
28
 
29
 
Checkout customize_, other plugins_ or `get in contact`_. 
 
29
Checkout customize_, other plugins_ or `get in contact`_.
30
30
 
31
31
.. include:: links.txt