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

« back to all changes in this revision

Viewing changes to doc/test/plugin/nose.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:
6
6
.. contents::
7
7
  :local:
8
8
 
9
 
This is an experimental plugin for allowing to run tests written 
10
 
in 'nosetests style with py.test.   
 
9
This is an experimental plugin for allowing to run tests written
 
10
in 'nosetests style with py.test.
11
11
 
12
12
Usage
13
13
-------------
17
17
    py.test  # instead of 'nosetests'
18
18
 
19
19
and you should be able to run nose style tests and at the same
20
 
time can make full use of py.test's capabilities.  
 
20
time can make full use of py.test's capabilities.
21
21
 
22
22
Supported nose Idioms
23
23
----------------------
24
24
 
25
25
* setup and teardown at module/class/method level
26
 
* SkipTest exceptions and markers 
 
26
* SkipTest exceptions and markers
27
27
* setup/teardown decorators
28
 
* yield-based tests and their setup 
29
 
* general usage of nose utilities 
 
28
* yield-based tests and their setup
 
29
* general usage of nose utilities
30
30
 
31
31
Unsupported idioms / issues
32
32
----------------------------------
33
33
 
34
34
- nose-style doctests are not collected and executed correctly,
35
 
  also fixtures don't work. 
36
 
 
37
 
- no nose-configuration is recognized 
38
 
 
39
 
If you find other issues or have suggestions please run:: 
40
 
 
41
 
    py.test --pastebin=all 
 
35
  also fixtures don't work.
 
36
 
 
37
- no nose-configuration is recognized
 
38
 
 
39
If you find other issues or have suggestions please run::
 
40
 
 
41
    py.test --pastebin=all
42
42
 
43
43
and send the resulting URL to a py.test contact channel,
44
44
at best to the mailing list.
47
47
=========================================
48
48
 
49
49
 
50
 
1. Download `pytest_nose.py`_ plugin source code 
51
 
2. put it somewhere as ``pytest_nose.py`` into your import path 
 
50
1. Download `pytest_nose.py`_ plugin source code
 
51
2. put it somewhere as ``pytest_nose.py`` into your import path
52
52
3. a subsequent ``py.test`` run will use your local version
53
53
 
54
 
Checkout customize_, other plugins_ or `get in contact`_. 
 
54
Checkout customize_, other plugins_ or `get in contact`_.
55
55
 
56
56
.. include:: links.txt