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:
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
This is an experimental plugin for allowing to run tests written
|
2014-01-18 19:31:33 +08:00
|
|
|
in 'nosetests' style with ``pytest``.
|
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
|
|
|
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest # 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
|
2014-01-18 19:31:33 +08:00
|
|
|
time can make full use of pytest'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
|
2010-07-27 03:15:15 +08:00
|
|
|
* SkipTest exceptions and markers
|
2009-10-27 23:49:38 +08:00
|
|
|
* setup/teardown decorators
|
2010-07-27 03:15:15 +08:00
|
|
|
* 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,
|
2010-07-27 03:15:15 +08:00
|
|
|
also fixtures don't work.
|
2009-08-19 23:53:08 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
- no nose-configuration is recognized
|
2009-10-27 23:49:38 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
If you find other issues or have suggestions please run::
|
2009-10-27 23:49:38 +08:00
|
|
|
|
2016-06-21 22:16:57 +08:00
|
|
|
pytest --pastebin=all
|
2009-10-27 23:49:38 +08:00
|
|
|
|
2014-01-18 19:31:33 +08:00
|
|
|
and send the resulting URL to a ``pytest`` contact channel,
|
2009-10-27 23:49:38 +08:00
|
|
|
at best to the mailing list.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
Start improving this plugin in 30 seconds
|
|
|
|
=========================================
|
|
|
|
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
1. Download `pytest_nose.py`_ plugin source code
|
|
|
|
2. put it somewhere as ``pytest_nose.py`` into your import path
|
2014-01-18 19:31:33 +08:00
|
|
|
3. a subsequent ``pytest`` run will use your local version
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
Checkout customize_, other plugins_ or `get in contact`_.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
.. include:: links.txt
|