2010-07-27 03:15:15 +08:00
|
|
|
py.test/pylib 1.1.0: Python3, Jython, advanced skipping, cleanups ...
|
2009-11-05 10:18:55 +08:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Features:
|
|
|
|
|
2009-11-06 00:46:14 +08:00
|
|
|
* compatible to Python3 (single py2/py3 source), `easy to install`_
|
2009-11-05 10:18:55 +08:00
|
|
|
* conditional skipping_: skip/xfail based on platform/dependencies
|
2009-11-23 19:23:40 +08:00
|
|
|
* generalized marking_: mark tests one a whole-class or whole-module basis
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
Fixes:
|
|
|
|
|
|
|
|
* code reduction and "de-magification" (e.g. 23 KLoc -> 11 KLOC)
|
2010-07-27 03:15:15 +08:00
|
|
|
* distribute testing requires the now separately released execnet_ package
|
2009-11-05 10:18:55 +08:00
|
|
|
* funcarg-setup/caching, "same-name" test modules now cause an exlicit error
|
2010-07-27 03:15:15 +08:00
|
|
|
* de-cluttered reporting options, --report for skipped/xfail details
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
Compatibilities
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
1.1.0 should allow running test code that already worked well with 1.0.2
|
|
|
|
plus some more due to improved unittest/nose compatibility.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
More information: http://pytest.org
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
thanks and have fun,
|
|
|
|
|
|
|
|
holger (http://twitter.com/hpk42)
|
|
|
|
|
2009-11-06 00:46:14 +08:00
|
|
|
.. _execnet: http://codespeak.net/execnet
|
|
|
|
.. _`easy to install`: ../install.html
|
2009-11-05 10:18:55 +08:00
|
|
|
.. _marking: ../test/plugin/mark.html
|
|
|
|
.. _skipping: ../test/plugin/skipping.html
|
|
|
|
|
|
|
|
|
|
|
|
Changelog 1.0.2 -> 1.1.0
|
|
|
|
-----------------------------------------------------------------------
|
|
|
|
|
|
|
|
* remove py.rest tool and internal namespace - it was
|
|
|
|
never really advertised and can still be used with
|
2010-07-27 03:15:15 +08:00
|
|
|
the old release if needed. If there is interest
|
2009-11-05 10:18:55 +08:00
|
|
|
it could be revived into its own tool i guess.
|
|
|
|
|
|
|
|
* fix issue48 and issue59: raise an Error if the module
|
2010-07-27 03:15:15 +08:00
|
|
|
from an imported test file does not seem to come from
|
2009-11-05 10:18:55 +08:00
|
|
|
the filepath - avoids "same-name" confusion that has
|
|
|
|
been reported repeatedly
|
|
|
|
|
|
|
|
* merged Ronny's nose-compatibility hacks: now
|
2010-07-27 03:15:15 +08:00
|
|
|
nose-style setup_module() and setup() functions are
|
2009-11-05 10:18:55 +08:00
|
|
|
supported
|
|
|
|
|
|
|
|
* introduce generalized py.test.mark function marking
|
|
|
|
|
|
|
|
* reshuffle / refine command line grouping
|
|
|
|
|
|
|
|
* deprecate parser.addgroup in favour of getgroup which creates option group
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* add --report command line option that allows to control showing of skipped/xfailed sections
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* generalized skipping: a new way to mark python functions with skipif or xfail
|
|
|
|
at function, class and modules level based on platform or sys-module attributes.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* extend py.test.mark decorator to allow for positional args
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* introduce and test "py.cleanup -d" to remove empty directories
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* fix issue #59 - robustify unittest test collection
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* make bpython/help interaction work by adding an __all__ attribute
|
2009-11-05 10:18:55 +08:00
|
|
|
to ApiModule, cleanup initpkg
|
|
|
|
|
|
|
|
* use MIT license for pylib, add some contributors
|
|
|
|
|
|
|
|
* remove py.execnet code and substitute all usages with 'execnet' proper
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* fix issue50 - cached_setup now caches more to expectations
|
|
|
|
for test functions with multiple arguments.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* merge Jarko's fixes, issue #45 and #46
|
|
|
|
|
|
|
|
* add the ability to specify a path for py.lookup to search in
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* fix a funcarg cached_setup bug probably only occuring
|
|
|
|
in distributed testing and "module" scope with teardown.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* many fixes and changes for making the code base python3 compatible,
|
2010-07-27 03:15:15 +08:00
|
|
|
many thanks to Benjamin Peterson for helping with this.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* consolidate builtins implementation to be compatible with >=2.3,
|
2009-11-05 10:18:55 +08:00
|
|
|
add helpers to ease keeping 2 and 3k compatible code
|
|
|
|
|
|
|
|
* deprecate py.compat.doctest|subprocess|textwrap|optparse
|
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* deprecate py.magic.autopath, remove py/magic directory
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* move pytest assertion handling to py/code and a pytest_assertion
|
2010-07-27 03:15:15 +08:00
|
|
|
plugin, add "--no-assert" option, deprecate py.magic namespaces
|
|
|
|
in favour of (less) py.code ones.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* consolidate and cleanup py/code classes and files
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* cleanup py/misc, move tests to bin-for-dist
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* introduce delattr/delitem/delenv methods to py.test's monkeypatch funcarg
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* consolidate py.log implementation, remove old approach.
|
2009-11-05 10:18:55 +08:00
|
|
|
|
|
|
|
* introduce py.io.TextIO and py.io.BytesIO for distinguishing between
|
2010-07-27 03:15:15 +08:00
|
|
|
text/unicode and byte-streams (uses underlying standard lib io.*
|
|
|
|
if available)
|
2009-11-05 10:18:55 +08:00
|
|
|
|
2010-07-27 03:15:15 +08:00
|
|
|
* make py.unittest_convert helper script available which converts "unittest.py"
|
2009-11-05 10:18:55 +08:00
|
|
|
style files into the simpler assert/direct-test-classes py.test/nosetests
|
2010-07-27 03:15:15 +08:00
|
|
|
style. The script was written by Laura Creighton.
|
|
|
|
|
|
|
|
* simplified internal localpath implementation
|