2010-11-06 18:38:53 +08:00
|
|
|
Running test written for nose
|
|
|
|
=======================================
|
|
|
|
|
|
|
|
.. include:: links.inc
|
|
|
|
|
|
|
|
py.test has basic support for running tests written for nose_.
|
2010-11-13 18:10:45 +08:00
|
|
|
This is implemented in :pymod:`_pytest.nose`.
|
2010-11-06 18:38:53 +08:00
|
|
|
|
|
|
|
Usage
|
|
|
|
-------------
|
|
|
|
|
|
|
|
type::
|
|
|
|
|
|
|
|
py.test # instead of 'nosetests'
|
|
|
|
|
|
|
|
and you should be able to run your nose style tests and at the same
|
|
|
|
make full use of py.test's capabilities.
|
|
|
|
|
|
|
|
Supported nose Idioms
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
Unsupported idioms / issues
|
|
|
|
----------------------------------
|
|
|
|
|
|
|
|
- nose-style doctests are not collected and executed correctly,
|
|
|
|
also fixtures don't work.
|
|
|
|
|
|
|
|
- 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.
|
|
|
|
"""
|