2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
pytest_nose plugin
|
|
|
|
==================
|
|
|
|
|
|
|
|
nose-compatibility plugin: allow to run nose test suites natively.
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
:local:
|
|
|
|
|
|
|
|
This is an experimental plugin for allowing to run tests written
|
2009-08-19 23:53:08 +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-08-19 23:53:08 +08:00
|
|
|
and you should be able to run nose style tests. You will of course
|
|
|
|
get py.test style reporting and its feature set.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
Issues?
|
|
|
|
----------------
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
If you find issues or have suggestions please run::
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
py.test --pastebin=all
|
2009-08-10 17:27:13 +08:00
|
|
|
|
2009-08-19 23:53:08 +08:00
|
|
|
and send the resulting URL to a some contact channel.
|
2009-08-10 17:27:13 +08:00
|
|
|
|
|
|
|
Known issues
|
|
|
|
------------------
|
|
|
|
|
|
|
|
- nose-style doctests are not collected and executed correctly,
|
2009-08-19 23:53:08 +08:00
|
|
|
also fixtures don't work.
|
|
|
|
|
|
|
|
- no nose-configuration is recognized
|
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
|