holger krekel
77cacb99ee
to better match the naming of the corresponding AST (and in case
...
we want to add more customizations later)
rename pytest_assert_binrepr -> pytest_assertrepr_compare
rename binrepr -> reprcompare
--HG--
branch : trunk
2010-10-02 19:00:47 +02:00
holger krekel
1ff173baee
refactor assert interpretation to invoke a simple callable
...
and let the assertion plugin handle the hook invocation
and its multi-results and also pass in an (optional) test config
object to the hook. Add and refactor also a few tests.
--HG--
branch : trunk
2010-10-02 18:47:39 +02:00
holger krekel
2cf22e3124
shift all python related testing functioanlity to a dedicated
...
pytest_python
plugin which incorporates pytest's logic of python function testing (including funcargs).
--HG--
branch : trunk
2010-09-25 18:23:26 +02:00
holger krekel
e2683f4538
refactor all collection related logic
...
- drop all pickling support (for now)
- perform collection completely ahead of test running (no iterativity)
- introduce new collection related hooks
- shift all keyword-selection code to pytest_keyword plugin
- simplify session object
- besides: fix issue88
--HG--
branch : trunk
2010-09-15 10:30:50 +02:00
Ronny Pfannschmidt
b81e48507c
introduce py.builtin._sysex as alias for the special exceptions, fixes #115
...
--HG--
branch : trunk
2010-09-14 16:12:50 +02:00
holger krekel
af412d993c
simplify and fix installation instructions particularly for windows ( fixes #111 )
...
and bump version to 1.3.4
--HG--
branch : trunk
2010-09-14 15:43:00 +02:00
holger krekel
31c91796c6
bumping version number to 1.3.4a1
...
--HG--
branch : trunk
2010-08-01 20:44:11 +02:00
holger krekel
3654592959
bump version, prepare 1.3.3
...
--HG--
branch : trunk
2010-07-30 15:06:50 +02:00
holger krekel
677f7c0a6a
remove trailing whitespace everywhere
...
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel
ed8e24312c
fix terminal dimension detection to work with stdout
...
--HG--
branch : trunk
2010-07-26 13:13:10 +02:00
holger krekel
eddd16d9fd
progressing towards 1.3.2, adding announcement, regen docs
...
--HG--
branch : trunk
2010-07-07 15:41:28 +02:00
holger krekel
b66b5e2715
fix issue 57 - make --looponfail work with xpassing tests
...
--HG--
branch : trunk
2010-05-26 18:55:50 +02:00
holger krekel
545aab85f2
py-1.3.1 release prep and version bumping
...
--HG--
branch : trunk
2010-05-22 17:11:30 +02:00
holger krekel
0cebee2d24
bump version to 1.3.1a1 for now
...
--HG--
branch : trunk
2010-05-12 10:30:34 +02:00
holger krekel
8ba2a98e11
allow to run py.test.cmdline.main() multiple times.
...
--HG--
branch : trunk
2010-05-11 19:56:22 +02:00
holger krekel
3efb8028fb
update changelog, install info and bum version to 1.3.0
...
rather than 1.2.2 because of the added features
--HG--
branch : trunk
2010-05-02 15:06:20 +02:00
holger krekel
5ece3858e4
introduce new py.io.saferepr for printing the 'repr' of an object safely
...
and without consuming too much space
--HG--
branch : trunk
2010-04-29 14:17:07 +02:00
holger krekel
5dc66bb4ca
make py.io.ansi_print and py.io.get_terminal_width() directly available.
...
--HG--
branch : trunk
2010-04-29 10:49:50 +02:00
holger krekel
030548bc73
expose py.code._reinterpret functions so that pypy and internal
...
uses don't need to go through internal implementation imports
--HG--
branch : trunk
2010-04-29 01:20:56 +02:00
holger krekel
d5e463605e
* properly expose and document runtest-protocol related Exceptions
...
and move all definitions to the runner plugin for now.
* also move EXIT codes to session.py, obsoleting outcome.py alltogether.
--HG--
branch : trunk
2010-04-27 21:13:09 +02:00
Benjamin Peterson
d1b45ef3d4
add a helper to get a function's code
...
--HG--
branch : trunk
2010-04-23 20:39:40 -05:00
holger krekel
ff90b1b4fb
fix version numbers
...
--HG--
branch : trunk
2010-04-22 16:51:42 +02:00
holger krekel
85d35f7418
introduce an experimental approach for allowing dynamic addition of hooks from plugin. Plugins may register new hooks by implementing the new
...
pytest_registerhooks(pluginmanager)
and call
pluginmanager.registerhooks(module)
with the referenced 'module' object containing the hooks.
The new pytest_registerhooks is called after pytest_addoption
and before pytest_configure.
--HG--
branch : trunk
2010-04-22 11:57:57 +02:00
holger krekel
222a08ec03
going for the 1.2.1 release
...
--HG--
branch : trunk
2010-02-08 16:39:29 +01:00
holger krekel
14feeb9ca1
fix doc links, bump to dev version
...
--HG--
branch : trunk
2010-01-21 19:34:42 +01:00
holger krekel
866255e1f5
pushing towards 1.2.0
...
--HG--
branch : trunk
2010-01-18 11:19:59 +01:00
holger krekel
9da1ba40ed
move down py/impl/XYZ to py/_XYZ
...
--HG--
branch : trunk
2010-01-13 17:15:54 +01:00
holger krekel
ba1451330e
refine rsyncing and internal dir/transferal handling: don't transfer roots in a popen- no-chdir situation and only use one py._pydir everywhere
...
--HG--
branch : trunk
2010-01-11 14:30:50 +01:00
holger krekel
27aa14c20f
fix python3 issues, add missing plugin docs
...
--HG--
branch : trunk
2010-01-03 13:27:06 +01:00
holger krekel
0b2d9a5520
bumping version number: 1.2.0a1
...
--HG--
branch : trunk
2010-01-03 11:42:26 +01:00
holger krekel
db21cac694
cleanup py.test.* namespace, docstrings for improved pydoc and interactive usage.
...
use new apipkg __onfirstaccess__ feature to initialize the py.test namespace with the default plugins. This, besides other good implications, means that you can now type: pydoc py.test or help(py.test)
--HG--
branch : trunk
2009-12-29 16:29:48 +01:00
holger krekel
425e4849f3
remove/reduce internal global state: py._com.registry is now fully contained and always instantiated from the py.test PluginManager class.
...
--HG--
branch : trunk
2009-12-29 12:36:17 +01:00
holger krekel
f254b6f7c1
fixes to various tests, related to execnet automatic ID generation and other bits.
...
also lowering the version as "1.1.1post1" for now. 1.1.2 is still a bit off.
--HG--
branch : trunk
2009-12-24 19:43:14 +01:00
holger krekel
1580b2c8da
create version/interpreter differentiated py.test$VER for cpython, jython, pypy-c's, prepare 1.1.2 release
...
--HG--
branch : trunk
2009-12-23 19:58:52 +01:00
holger krekel
3adf6687c9
reintroduce py.test.cmdline.main() (alias for py.cmdline.pytest())
...
resolves issue #61
--HG--
branch : trunk
2009-11-19 23:13:28 +01:00
holger krekel
f4ec2d1ecd
improve deprecation, start changelog
...
--HG--
branch : trunk
2009-11-12 13:10:30 +01:00
holger krekel
a5a94c4e8f
largely improve and reshuffle docs, heading strongly towards a 1.1.0
...
--HG--
branch : trunk
2009-11-05 03:18:55 +01:00
holger krekel
b04a04cabd
make py lib a self-contained directory again
...
- move and merge _py/ bits back to py/
- fixes all around
--HG--
branch : trunk
2009-11-04 21:34:07 +01:00
holger krekel
cc15685015
remove pyrest and _py/rest before first 1.1. release
...
--HG--
branch : trunk
2009-10-29 12:25:47 +01:00
holger krekel
690ccaedc1
remove unnecessary builtin directory in favour of a single file
...
--HG--
branch : trunk
2009-10-28 22:00:38 +01:00
holger krekel
33bd39053f
using apipkg 1.0b2 snapshot version - adjusting/cleaning up some impl-detail accesses
...
--HG--
branch : trunk
2009-10-27 21:31:42 +01:00
holger krekel
d8b9b5f1c8
- make importorskip static at py.test.importorskip because it's
...
used for conditional plugin loading
- fix case where xfail is defined at module/class level
- fixes and improvements to docs, correct links to plugins
- use new skip facilities here and there
--HG--
branch : trunk
2009-10-15 20:10:06 +02:00
holger krekel
3ca770b420
generalize skipping
...
- rename pytest_xfail to pytest_skip
- dynamic "skipif" and "xfail" decorators
- move most skipping code to the plugin
also coming with this commit:
- extend mark keyword to accept positional args + docs
- fix a few documentation related issues
- leave version as "trunk" for now
--HG--
branch : trunk
2009-10-15 16:18:57 +02:00
holger krekel
5791c06bf2
rewrote the initpkg mechanism and moved py lib implementation files to
...
_py/... with py/__init__.py containing pointers into them
The new apipkg is only around 70 lines of code and allows
us to get rid of the infamous "py.__." by regular non-magical
"_py." imports. It is also available as a separately installable
package, see http://bitbucket.org/hpk42/apipkg
--HG--
branch : trunk
2009-10-03 01:47:39 +02:00
holger krekel
db1ff48996
* use the MIT license for the py lib
...
* bump version to prospective 1.1.0b1
* strike some unused code from initpkg
--HG--
branch : trunk
2009-10-03 01:11:04 +02:00
holger krekel
ab9f6a75ad
remove py.execnet, substitute py.execnet usages with "execnet" ones.
...
--HG--
branch : trunk
2009-10-02 16:58:57 +02:00
holger krekel
5cf27098cf
execnet cleanup/refinements: avoid creating a shell for each subprocess
...
* introduce HostNotFound, raised for Socket and SshGateways
* factored out basic tests, cleaned up existing tests
* removed sshgateway identity argument which was deprecated in 1.0
--HG--
branch : trunk
2009-09-06 13:38:21 +02:00
holger krekel
7ab98c1b25
* delete or text files to hacking/ directory.
...
* split license file into authors and license file, minor fixes.
* minor unicode fixes
--HG--
branch : trunk
2009-09-05 16:09:44 +02:00
holger krekel
1e51844519
introduce py.builtin._tryimport to try importing modules in a row, fix a few places
...
--HG--
branch : trunk
2009-09-04 19:08:10 +02:00
holger krekel
32e2bf7d08
make xmlgen a single file + a single file test instead of a whole directory
...
--HG--
branch : trunk
2009-09-04 18:30:48 +02:00