parent
36288223b4
commit
d668acfd99
|
@ -5,9 +5,9 @@ Changes between 1.0.0 and 1.0.1
|
||||||
nose-style function/method/generator setup/teardown and
|
nose-style function/method/generator setup/teardown and
|
||||||
tries to report functions correctly.
|
tries to report functions correctly.
|
||||||
|
|
||||||
* capturing of unicode writes to sys.stdout/err work better within
|
* capturing of unicode writes or encoded strings to sys.stdout/err
|
||||||
encoded as "utf8" by default, also terminalwriting was adapted
|
work better, also terminalwriting was adapted and somewhat
|
||||||
and somewhat unified between windows and linux
|
unified between windows and linux.
|
||||||
|
|
||||||
* improved documentation layout and content a lot
|
* improved documentation layout and content a lot
|
||||||
|
|
||||||
|
|
|
@ -8,40 +8,26 @@ nose-compatibility plugin: allow to run nose test suites natively.
|
||||||
:local:
|
:local:
|
||||||
|
|
||||||
This is an experimental plugin for allowing to run tests written
|
This is an experimental plugin for allowing to run tests written
|
||||||
in the 'nosetests' style with py.test.
|
in 'nosetests' style with py.test.
|
||||||
nosetests is a popular clone
|
|
||||||
of py.test and thus shares some philosophy. This plugin is an
|
|
||||||
attempt to understand and neutralize differences. It allows to
|
|
||||||
run nosetests' own test suite and a number of other test suites
|
|
||||||
without problems.
|
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
If you type::
|
type::
|
||||||
|
|
||||||
py.test -p nose
|
py.test # instead of 'nosetests'
|
||||||
|
|
||||||
where you would type ``nosetests``, you can run your nose style tests.
|
and you should be able to run nose style tests. You will of course
|
||||||
You might also try to run without the nose plugin to see where your test
|
get py.test style reporting and its feature set.
|
||||||
suite is incompatible to the default py.test.
|
|
||||||
|
|
||||||
To avoid the need for specifying a command line option you can set an environment
|
Issues?
|
||||||
variable::
|
----------------
|
||||||
|
|
||||||
PYTEST_PLUGINS=nose
|
If you find issues or have suggestions please run::
|
||||||
|
|
||||||
or create a ``conftest.py`` file in your test directory or below::
|
py.test --pastebin=all
|
||||||
|
|
||||||
# conftest.py
|
and send the resulting URL to a some contact channel.
|
||||||
pytest_plugins = "nose",
|
|
||||||
|
|
||||||
If you find issues or have suggestions you may run::
|
|
||||||
|
|
||||||
py.test -p nose --pastebin=all
|
|
||||||
|
|
||||||
to create a URL of a test run session and send it with comments to the issue
|
|
||||||
tracker or mailing list.
|
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
------------------
|
------------------
|
||||||
|
@ -49,6 +35,8 @@ Known issues
|
||||||
- nose-style doctests are not collected and executed correctly,
|
- nose-style doctests are not collected and executed correctly,
|
||||||
also fixtures don't work.
|
also fixtures don't work.
|
||||||
|
|
||||||
|
- no nose-configuration is recognized
|
||||||
|
|
||||||
Start improving this plugin in 30 seconds
|
Start improving this plugin in 30 seconds
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,5 @@ Generator = py.test.collect.Generator
|
||||||
Function = py.test.collect.Function
|
Function = py.test.collect.Function
|
||||||
Instance = py.test.collect.Instance
|
Instance = py.test.collect.Instance
|
||||||
|
|
||||||
pytest_plugins = "default runner capture terminal keyword xfail tmpdir execnetcleanup monkeypatch recwarn pdb pastebin unittest helpconfig".split()
|
pytest_plugins = "default runner capture terminal keyword xfail tmpdir execnetcleanup monkeypatch recwarn pdb pastebin unittest helpconfig nose".split()
|
||||||
|
|
||||||
|
|
|
@ -1,40 +1,26 @@
|
||||||
"""nose-compatibility plugin: allow to run nose test suites natively.
|
"""nose-compatibility plugin: allow to run nose test suites natively.
|
||||||
|
|
||||||
This is an experimental plugin for allowing to run tests written
|
This is an experimental plugin for allowing to run tests written
|
||||||
in the 'nosetests' style with py.test.
|
in 'nosetests' style with py.test.
|
||||||
nosetests is a popular clone
|
|
||||||
of py.test and thus shares some philosophy. This plugin is an
|
|
||||||
attempt to understand and neutralize differences. It allows to
|
|
||||||
run nosetests' own test suite and a number of other test suites
|
|
||||||
without problems.
|
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
If you type::
|
type::
|
||||||
|
|
||||||
py.test -p nose
|
py.test # instead of 'nosetests'
|
||||||
|
|
||||||
where you would type ``nosetests``, you can run your nose style tests.
|
and you should be able to run nose style tests. You will of course
|
||||||
You might also try to run without the nose plugin to see where your test
|
get py.test style reporting and its feature set.
|
||||||
suite is incompatible to the default py.test.
|
|
||||||
|
|
||||||
To avoid the need for specifying a command line option you can set an environment
|
Issues?
|
||||||
variable::
|
----------------
|
||||||
|
|
||||||
PYTEST_PLUGINS=nose
|
If you find issues or have suggestions please run::
|
||||||
|
|
||||||
or create a ``conftest.py`` file in your test directory or below::
|
py.test --pastebin=all
|
||||||
|
|
||||||
# conftest.py
|
and send the resulting URL to a some contact channel.
|
||||||
pytest_plugins = "nose",
|
|
||||||
|
|
||||||
If you find issues or have suggestions you may run::
|
|
||||||
|
|
||||||
py.test -p nose --pastebin=all
|
|
||||||
|
|
||||||
to create a URL of a test run session and send it with comments to the issue
|
|
||||||
tracker or mailing list.
|
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
------------------
|
------------------
|
||||||
|
@ -42,6 +28,8 @@ Known issues
|
||||||
- nose-style doctests are not collected and executed correctly,
|
- nose-style doctests are not collected and executed correctly,
|
||||||
also fixtures don't work.
|
also fixtures don't work.
|
||||||
|
|
||||||
|
- no nose-configuration is recognized
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import py
|
import py
|
||||||
import inspect
|
import inspect
|
||||||
|
|
Loading…
Reference in New Issue