holger krekel
f779d3f863
rework session instantiation and exitstatus handling
...
--HG--
branch : trunk
2010-09-28 12:59:48 +02:00
holger krekel
2718fccfa0
make "tools-on-path" the default and add new random fnmatch-matching method
...
--HG--
branch : trunk
2010-09-27 20:48:30 +02:00
holger krekel
a2fe6714f8
implement pytest_runtest_logstart(nodeid, location) hook
...
factor out a NodeInfo helper, and streamline terminal printing a bit
--HG--
branch : trunk
2010-09-26 16:23:45 +02:00
holger krekel
1c020c3d32
shift reporting info generation away from terminal reporting time, simplify code.
...
also get rid of redundant 'shortrepr' on collect/test reports
and rename reportinfo to "location" in some places
--HG--
branch : trunk
2010-09-26 16:23:44 +02:00
holger krekel
7d1585215d
clean up and simplify startup test protocols and objects
...
introduce some new experimental hooks pytest_runtest_mainloop
to better integrate distributed testing
--HG--
branch : trunk
2010-09-26 16:23:43 +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
Floris Bruynooghe
c3166ee84a
Fix bug when the right list was longer then the left
...
Thanks to Holger for finding this.
--HG--
branch : trunk
2010-09-22 18:52:07 +01:00
Floris Bruynooghe
56b955dfb5
Make pytest_assert_binrepr work on python3 too
...
--HG--
branch : trunk
2010-09-22 18:42:04 +01:00
Floris Bruynooghe
4b2cb3acbe
Merge tip from py-trunk.
...
--HG--
branch : trunk
2010-09-22 18:14:59 +01:00
Floris Bruynooghe
ca84a5e8e0
Rename pytest_assert_compare to pytest_assert_binrepr
...
Holger prefers to only have one hook and it also turns out that "in"
is actually a ast.Compare node as well too.
This also modifies the pytest_assert_binrepr hook slightly so that
it's more accomodating to other operators then just compare (i.e.
don't bail out as soon as the types of the operands differ).
--HG--
branch : trunk
2010-09-22 00:56:39 +01:00
Floris Bruynooghe
b86207a6c1
Don't load py.test.config inside py._code._assertionnew
...
Loading py.test.config triggers py.test initialisation while py.code
should stay independent of py.test. By adding the hook as an
attribute to py.test AssertionError py.code can get access to the
hooks only when py.test is loaded already.
--HG--
branch : trunk
2010-09-22 00:26:12 +01:00
Floris Bruynooghe
abab8f6f63
Move all tests to test_pytest_assertion
...
The py.code code is independent of any py.test specifics so we should
avoid creating dependencies on py.test in those parts.
--HG--
branch : trunk
2010-09-18 13:03:28 +01:00
Floris Bruynooghe
0af90e0962
Add specialised explanations to the demo
...
This currently breaks the test_failuers.py example as that file counts
the number of failures in the demo. But this demo isn't fixed yet so
we'll leave it for now.
--HG--
branch : trunk
2010-09-16 01:07:53 +01:00
Floris Bruynooghe
58169edc8e
Add set comparison
...
Also add a (too) simple mechanism too truncate too long explanations.
--HG--
branch : trunk
2010-09-16 01:06:07 +01: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
holger krekel
350ebbd9ad
Added tag 1.3.4 for changeset 90fffd35373e
...
--HG--
branch : trunk
2010-09-14 17:35:17 +02:00
holger krekel
bb6e9848b3
recreated plugin docs
...
--HG--
branch : trunk
2010-09-14 17:35:01 +02:00
holger krekel
489faf26f2
Added tag 1.3.4 for changeset 79ef63777051
...
--HG--
branch : trunk
2010-09-14 16:54:41 +02:00
holger krekel
9ca7ed647b
finalize release announce and changelog
...
--HG--
branch : trunk
2010-09-14 16:36:34 +02:00
holger krekel
79734420df
some small doc fixes
...
--HG--
branch : trunk
2010-09-14 16:18:06 +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
04b3b9a3da
preliminary release announcement
...
--HG--
branch : trunk
2010-09-14 15:46:30 +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
Floris Bruynooghe
6fb56443a9
Split the tests between the core and plugin
...
The tests for _assertionnew are much better, the ones for
pytest_assert_compare() are still not great.
--HG--
branch : trunk
2010-09-08 22:21:52 +01:00
holger krekel
6f40441ef8
fixing test for python2.4 (thanks ronny)
...
--HG--
branch : trunk
2010-09-08 18:29:26 +02:00
holger krekel
7903fbb8ce
applied ronny's patch, fixes #116
...
--HG--
branch : trunk
2010-09-08 16:51:46 +02:00
Ronny Pfannschmidt
2b59200786
implement and naively test the native traceback style
...
--HG--
branch : trunk
2010-09-08 12:00:36 +02:00
Floris Bruynooghe
2b3ac35780
Merge py-trunk tip
...
--HG--
branch : trunk
2010-09-07 22:45:19 +01:00
holger krekel
c17bb32f70
patch from flub to allow callable objects as hook implementations
...
--HG--
branch : trunk
2010-09-07 10:03:11 +02:00
Floris Bruynooghe
f194b16a09
Don't import difflib and pprint up-front
...
Builtin plugins need to keep their import time to a minimum.
Therefore it's better to delay importing till you really need it, i.e.
use py.std.* in this case.
--HG--
branch : trunk
2010-09-06 19:46:58 +01:00
Floris Bruynooghe
cd013746cf
Initial patch as sent to py-dev
...
With a small but disasterous typo fixed though.
--HG--
branch : trunk
2010-09-06 19:35:17 +01:00
holger krekel
95bafbccd1
fix issue116 : --doctestmodules also works in the presence of __init__.py files, done by fixing the underlyingly used path.pyimport()
...
--HG--
branch : trunk
2010-09-04 09:21:35 +02:00
Ed Singleton
a2f9fbb178
Added a test and fix for nose compatible setup/teardown functions so that even less errors are ignored
...
--HG--
branch : trunk
2010-09-03 11:32:12 +01:00
Ed Singleton
f814cb5346
Added a test and fix for nose compatible setup/teardown functions that are partials, and so errors are not ignored
...
--HG--
branch : trunk
2010-09-03 11:27:47 +01:00
Ed Singleton
b690290c3f
Whitespace normalisation inside funcs in test_pytest_nose.py
...
--HG--
branch : trunk
2010-09-03 10:09:41 +01:00
Ed Singleton
c542806396
Whitespace normalisation between funcs in test_pytest_nose.py
...
--HG--
branch : trunk
2010-09-03 10:07:17 +01:00
Ed Singleton
faf0fe8887
Added a test and fix for nose compatible setup/teardown functions that contain a variable
...
--HG--
branch : trunk
2010-09-03 10:04:45 +01:00
holger krekel
d8fcc96563
committed a xfailing test for sibling conftests
...
--HG--
branch : trunk
2010-08-02 16:39:36 +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
8f2b0d0889
test and fix for apipkg (also available in apipkg default branch)
...
--HG--
branch : trunk
2010-08-01 20:43:02 +02:00
holger krekel
ba1f6336af
add 1.3.3 release "announcement"
...
--HG--
branch : trunk
2010-08-01 15:21:59 +02:00
holger krekel
782430c614
Added tag 1.3.3 for changeset c59d3fa8681a
...
--HG--
branch : trunk
2010-07-31 01:07:12 +02:00
holger krekel
3654592959
bump version, prepare 1.3.3
...
--HG--
branch : trunk
2010-07-30 15:06:50 +02:00
holger krekel
6aab9bcfb9
another whitespace-correction commit
...
--HG--
branch : trunk
2010-07-30 15:05:24 +02:00
holger krekel
efeae72509
fixes issue113 - assertion represenation issue
...
--HG--
branch : trunk
2010-07-29 12:55:39 +02:00
holger krekel
92bfb58798
fix bug on writing out objects with terminalwriter on windows
...
--HG--
branch : trunk
2010-07-29 11:32:24 +02:00
holger krekel
74523a9d09
avoid loading conftest files which are exactly the same content as a previously loaded conftest file
...
--HG--
branch : trunk
2010-07-29 11:22:16 +02:00
holger krekel
e5d09b771a
fix windows32 terminal coloring
...
--HG--
branch : trunk
2010-07-28 17:33:26 +02:00
holger krekel
677f7c0a6a
remove trailing whitespace everywhere
...
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel
1693b9c407
update issues
...
--HG--
branch : trunk
2010-07-26 19:54:34 +01:00