Brianna Laugher
f2175146a9
Merged hpk42/pytest into default
2013-05-21 11:18:37 +10:00
Brianna Laugher
d8bc40271a
issue #308
...
+ docs
2013-05-21 11:12:45 +10:00
Wouter van Ackooy
fe27f3cc7d
Fixed issue #306 : Keywords and markers are now matched in a defined way. Also applied some pep8 formatting while fixing.
2013-05-20 14:37:58 +02:00
Brianna Laugher
3aa0e4a526
? pull/merge
2013-05-20 12:56:30 +10:00
Brianna Laugher
ee65ca10f4
issue #308
...
address some comments by @hpk42 on 0b9d82e :
- move tests into their own class, rename
- add test showing metafunc.parametrize called in pytest_generate_tests rather than as decorator
- add test and fix single-argname case
- convert two loops into one in parametrize()
also
- renamed 'input' to 'n', since 'input' is a built-in
2013-05-20 12:52:20 +10:00
holger krekel
afbeb056f0
added changelog for improved doctest counting
2013-05-17 20:48:51 +02:00
Danilo de Jesus da Silva Bellini
242b67de17
zero to many doctests from module instead of one
2013-05-17 12:18:22 -03:00
holger krekel
ed1095565b
Merged hpk42/pytest into default
2013-05-17 11:32:52 +02:00
Brianna Laugher
5373a63008
issue #308
...
first attempt, mark individual parametrize test instances with other marks (like xfail)
2013-05-17 18:46:36 +10:00
holger krekel
e6e86fa462
fix issue307 - use yaml.safe_load instead of yaml.load, thanks Mark Eichin.
2013-05-16 09:59:48 +02:00
holger krekel
5a1ce3c45c
add Jaap Broekhuizen for junitxml gen
2013-05-10 08:14:39 +02:00
holger krekel
67279418ff
fix junitxml generation when test output contains control characters,
...
addressing issue267
2013-05-10 08:13:35 +02:00
holger krekel
1f1c24fe15
Merged in jaapz/pytest-xml-escape-control-chars (pull request #32 )
...
Fix junitxml generation when using special characters in parametrized tests.
2013-05-10 08:06:31 +02:00
Jaap Broekhuizen
7803bca335
Implemented a test for xml control character fail.
2013-05-09 21:16:57 +02:00
holger krekel
c610c903f6
mention --tb style change in changelog
2013-05-09 15:50:28 +02:00
holger krekel
36e7cc1b9c
honor --tb style for setup/teardown errors as well.
2013-05-09 15:50:09 +02:00
holger krekel
d69c9da656
add maho as contributor
2013-05-09 15:37:51 +02:00
holger krekel
a113c4c6d3
Merged in maho/pytest (pull request #31 )
...
#299
2013-05-09 15:32:29 +02:00
maho
9e3cd03721
#299 - polishing
2013-05-08 17:01:20 +02:00
Jaap Broekhuizen
0e5f2847f1
Fix pytest.py permissions.
2013-05-08 16:11:55 +02:00
Jaap Broekhuizen
963b944e79
Fix junitxml generation when using special characters in parametrized tests.
2013-05-08 15:15:43 +02:00
holger krekel
55cd3d8bf3
bump version
2013-05-07 21:39:30 +02:00
holger krekel
150ad0172f
document context fixtures, also improve plugin docs
2013-05-07 21:37:08 +02:00
holger krekel
9d8645b45d
enhance index page, fix announcement index
2013-05-07 21:34:59 +02:00
holger krekel
bbd265184d
support boolean condition expressions in skipif/xfail
...
change documentation to prefer it over string expressions
2013-05-07 18:40:26 +02:00
holger krekel
3279cfa28b
don't use indexservers anymore
2013-05-07 16:26:56 +02:00
holger krekel
5fb4a100c9
Removed tag 1.4.14
2013-05-07 10:55:41 +02:00
holger krekel
71b4908233
Removed tag 1.4.14
2013-05-07 10:54:46 +02:00
holger krekel
77d2f6adde
fix issue245 by depending on py-1.4.14 which fixes py.io.dupfile
...
to not assume file.mode is present.
2013-05-07 10:54:05 +02:00
holger krekel
51688270ac
implemented as context managers. Thanks Andreas Pelme,
...
ladimir Keleshev.
fix issue245 by depending on the released py-1.4.14
which fixes py.io.dupfile to work with files with no
mode. Thanks Jason R. Coombs.
2013-05-07 10:53:31 +02:00
holger krekel
19f3e06ab0
Added tag 1.4.14 for changeset b93ac0cdae02
2013-05-07 10:48:13 +02:00
hg
d2dc797779
#299
2013-05-05 22:15:06 +02:00
holger krekel
56aa9962fc
allow fixture functions to be implemented as context managers:
...
@pytest.fixture
def myfix():
# setup
yield 1
# teardown
2013-05-05 14:48:37 +02:00
holger krekel
8e41ef5776
bump version
2013-05-05 14:48:17 +02:00
holger krekel
331bd84ef4
change version
2013-05-05 14:23:47 +02:00
holger krekel
4ac3445056
Added tag 2.3.5 for changeset fc3a793e87ec
2013-04-30 16:41:01 +02:00
holger krekel
8c7ae7f7a5
release 2.3.5 packaging
2013-04-30 12:26:30 +02:00
holger krekel
05c4ecf892
fix recursion within import hook and source.decode in particular
2013-04-30 12:05:58 +02:00
holger krekel
c5f9958783
never consider a fixture function for test function collection
2013-04-29 10:31:51 +02:00
Floris Bruynooghe
7a90515d49
Treat frozenset as a set
...
Thanks to Brianna Laugher.
2013-04-28 20:59:10 +01:00
Floris Bruynooghe
3ab94544b9
Ingore rope auto-generated files
2013-04-28 20:57:52 +01:00
Floris Bruynooghe
3c317dc35e
Minor style cleanup
2013-04-28 20:56:56 +01:00
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