2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
nose-compatibility plugin: allow to run nose test suites natively.
|
2010-01-13 23:00:33 +08:00
|
|
|
==================================================================
|
|
|
|
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
This is an experimental plugin for allowing to run tests written
|
2009-10-27 23:49:38 +08:00
|
|
|
in 'nosetests style with py.test.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
Usage
|
|
|
|
-------------
|
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
type::
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
py.test # instead of 'nosetests'
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-10-27 23:49:38 +08:00
|
|
|
and you should be able to run nose style tests and at the same
|
|
|
|
time can make full use of py.test's capabilities.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-10-27 23:49:38 +08:00
|
|
|
Supported nose Idioms
|
|
|
|
----------------------
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-10-27 23:49:38 +08:00
|
|
|
* setup and teardown at module/class/method level
|
|
|
|
* SkipTest exceptions and markers
|
|
|
|
* setup/teardown decorators
|
|
|
|
* yield-based tests and their setup
|
|
|
|
* general usage of nose utilities
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-10-27 23:49:38 +08:00
|
|
|
Unsupported idioms / issues
|
|
|
|
----------------------------------
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
- nose-style doctests are not collected and executed correctly,
|
2009-08-19 23:53:08 +08:00
|
|
|
also fixtures don't work.
|
|
|
|
|
2009-10-27 23:49:38 +08:00
|
|
|
- no nose-configuration is recognized
|
|
|
|
|
|
|
|
If you find other issues or have suggestions please run::
|
|
|
|
|
|
|
|
py.test --pastebin=all
|
|
|
|
|
|
|
|
and send the resulting URL to a py.test contact channel,
|
|
|
|
at best to the mailing list.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
Start improving this plugin in 30 seconds
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
|
|
|
|
1. Download `pytest_nose.py`_ plugin source code
|
|
|
|
2. put it somewhere as ``pytest_nose.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-10 17:27:13 +08:00
|
|
|
|
|
|
|
.. include:: links.txt
|