holger krekel
b2cb93e06d
allow re-running of a test item (as exercised by the
...
pytest-rerunfailures plugins) by re-initializing and removing
request/funcargs information in runtestprotocol() - which is a slightly
odd place to add funcarg-related functionality but it allows all
pytest_runtest_setup/teardown hooks to properly see a valid
request/funcarg content on test items.
2013-04-22 10:35:48 +02:00
Floris Bruynooghe
c93fbb0e57
Load conftest files in the correct order initially
...
When the conftest.py files are looked for intially they got loaded
starting from the subdir ending at the parent dir(s). Later on during
collection any conftest.py files are loaded starting from the parent
dir ending at the subdir. Due to how extending fixtures works the
latter is correct as otherwise the wrong fixture will be available.
So this changes the initial conftest loading to start at the root and
go towards the subdir.
This does also affect the order of other hooks, hence the order of the
reporting being different in testing/test_terminal.py.
2013-04-18 12:24:53 +01:00
Ronny Pfannschmidt
cf7cae0780
pdb plugin: move entering pdb into a toplevel function
...
this prepares pdb at collect time
2013-04-18 11:18:24 +02:00
Ronny Pfannschmidt
55c349a9eb
charify pdb visible stack end finding by turning it into a function
2013-04-16 10:19:20 +02:00
Ronny Pfannschmidt
73446e98be
turn the postmortem traceback selection to a function
2013-04-16 10:18:08 +02:00
holger krekel
0bc98eb9d2
add to changelog: put captured stdout/stderr into junitxml output even
...
for passing tests (thanks Adam Goucher)
2013-04-16 09:14:47 +02:00
holger krekel
bfe9779b37
merge
2013-04-16 09:13:58 +02:00
holger krekel
bb6f3ebd31
slightly improve -k help string
...
cosmetic change to test_nose.py
2013-04-16 09:04:05 +02:00
holger krekel
ee69b43c7a
Merged in adamgoucher/pytest (pull request #29 )
...
stdout/stderr now captured by junitxml
2013-04-16 09:02:08 +02:00
Ronny Pfannschmidt
63a6936d82
move pdb plugin post morten traceback selection to a own function
...
this is preparation for making it resillent against broken envs
that can't import doctest
2013-04-16 08:46:55 +02:00
Adam Goucher
1cbd2db621
stdout/stderr now captured by junitxml
2013-04-16 00:45:14 -04:00
holger krekel
94aa76fec0
fix reference
2013-04-04 14:36:44 +02:00
Sasha Hart
265a4de06e
doc fix: 'x' should be '-x' so it is not interpreted as a filename
2013-04-03 14:51:06 -05:00
holger krekel
712898cfe1
- add release announce
2013-03-28 10:21:03 +01:00
Floris Bruynooghe
f31dc7a8b7
Attempt to improve detailed failure reporting
...
* If --verbose is used do not truncate.
* Add a special dict comparison instead of diffing
pprint output.
2013-03-28 01:39:01 +00:00
Ronny Pfannschmidt
9c9679945e
fix Issue 265 - integrate nose setup/teardown with setupstate
...
as sideeffect teardown is only called if setup doesnt fail
2013-03-25 10:52:02 +01:00
Ronny Pfannschmidt
ba79c1926c
add a test for issue 14 that will xfail on python < 2.7
2013-03-25 08:53:08 +01:00
Ronny Pfannschmidt
76fb51a4ba
fix issue 271 - dont write junitxml on slave nodes
2013-03-24 20:43:25 +01:00
Ronny Pfannschmidt
93da606763
fix Issue 274 - dont fail when doctest does not know the example location
...
instead only the last test is shown, this could use some further enhancement
2013-03-24 20:05:29 +01:00
Benjamin Peterson
5e479c94ce
disable assertion rewriting on CPython 2.6.0 because of bugs ( fixes #280 )
2013-03-21 12:19:01 -05:00
holger krekel
1884be0121
added changelog entry for getfixture() for doctests
2013-03-21 12:41:39 +01:00
holger krekel
8f8466ee40
Merged in witsch/pytest/doctest-fixtures (pull request #25 )
...
fixture support in doctests
2013-03-21 12:33:43 +01:00
Andreas Zeidler
dfcb0e322c
rename `get_fixture` to `getfixture` to better match the current API style
...
--HG--
branch : doctest-fixtures
2013-03-21 12:04:14 +01:00
Andreas Zeidler
da3b42ce46
remove debugging left-overs
...
--HG--
branch : doctest-fixtures
2013-03-21 01:03:59 +01:00
Andreas Zeidler
fa9bd8443f
update the documentation regarding the `get_fixture` helper
...
please note that the japanese translation was done using "google translate" and should probably be checked again... :)
--HG--
branch : doctest-fixtures
2013-03-20 17:54:38 +01:00
Andreas Zeidler
5a3547dd7e
also provide `get_fixture` helper for module level doctests
...
--HG--
branch : doctest-fixtures
2013-03-20 17:32:48 +01:00
Andreas Zeidler
c4b3a09886
test `get_fixture` helper for doctests
...
--HG--
branch : doctest-fixtures
2013-03-20 17:14:28 +01:00
Andreas Zeidler
f747d363b0
don't expose the `FixtureRequest` object itself in doctests. in most cases `get_fixture` is sufficient, and you can always call `get_fixture('request')` anyway
...
--HG--
branch : doctest-fixtures
2013-03-20 16:36:48 +01:00
Benjamin Peterson
65c69a34ac
python 2.4 compatibility
2013-03-16 20:08:01 -07:00
Antonio Cuni
ba0100e057
(antocuni, ronny around): import directly from _pytest.runner to avoid the usage of @property
2013-03-14 16:53:57 +01:00
Antonio Cuni
37c47155e0
correctly handle nose.SkipTest during collection
2013-03-14 16:10:33 +01:00
Takafumi Arakaki
5ba2a7f628
Add texinfo build target to doc/*/Makefile
2013-03-10 07:25:14 +01:00
Benjamin Peterson
0cf79b29cd
in the default Python 2 case, manually check the source is ASCII ( fixes #269 )
2013-03-08 10:44:41 -05:00
Floris Bruynooghe
6d1662e4b7
Use py.builtin._basestring
2013-02-15 13:38:40 +00:00
Floris Bruynooghe
850fd2b7f7
Mention fix of issue 266 in changelog
2013-02-15 13:28:26 +00:00
Floris Bruynooghe
48e6aa9dc7
Allow MarkEvaluator expressions to be unicode
...
This fixes issue #266 .
2013-02-15 11:47:48 +00:00
Ronny Pfannschmidt
0dd05023b8
fix issue 251 - report a skip instead of ignoring classes with init
2013-02-15 10:18:00 +01:00
Ronny Pfannschmidt
aeba66ac6a
fix typo in link
2013-02-14 14:15:13 +01:00
Ronny Pfannschmidt
d23f9fab46
update changelog
2013-02-14 13:17:05 +01:00
Ronny Pfannschmidt
69ef750091
fix issue134 - print the collect errors that prevent running specified test items
2013-02-14 12:21:42 +01:00
Ronny Pfannschmidt
ca8b3c2307
unify logic for error exit on test failures
2013-02-14 12:13:04 +01:00
holger krekel
857c99d354
fix py32 incompatible syntax
2013-02-14 12:17:23 +01:00
holger krekel
3785f1aae3
make dev pytest depend on installing from pypi.testrun.org
2013-02-14 11:57:32 +01:00
holger krekel
d0e18ac63f
issue250 unicode/str mixes in parametrization names and values now works
2013-02-12 23:30:34 +01:00
holger krekel
296f752cca
fix --genscript option to generate standalone scripts that also
...
work with python3.3 (importer ordering)
2013-02-12 22:59:29 +01:00
holger krekel
456731ed0f
fix issue257 assertion-triggered compilation of source ending in a
...
comment line doesn't blow up in python2.5 (fixed through py>=1.4.13.dev6)
2013-02-12 22:43:33 +01:00
holger krekel
c8653b4c02
merge
2013-02-12 20:45:01 +01:00
holger krekel
e7a86caac2
strike python3.1 tox testing, 3.2 and 3.3 is enough
2013-02-12 20:44:04 +01:00
Ronny Pfannschmidt
162c3689c6
fix issue 260 - don't use nose specials on plain unittest cases
2013-02-07 17:53:13 +01:00
Ronny Pfannschmidt
b94c3084a6
small line length fix in nose plugin call optional
2013-02-07 10:41:07 +01:00