holger krekel
396045e53f
allow registration of "funcarg" marked factories
2012-07-20 14:16:49 +02:00
holger krekel
80db25822c
implement funcarg factory scope marker and ScopeMismatch detection
2012-07-20 14:16:46 +02:00
holger krekel
f358fe7154
extend Metafunc and write a pytest_generate_tests hook on the funcarg manager
...
which discovers factories
2012-07-20 14:16:46 +02:00
holger krekel
e14459d45c
discover funcarg factories independently from request/Function items
2012-07-20 14:16:28 +02:00
holger krekel
4e4b507472
move funcarg factory to a new FuncargManager object at session level
2012-07-19 09:20:14 +02:00
holger krekel
c7ee6e71ab
re-introduce the old 2.2.4 FuncargRequest implementation as it is a better
...
base for implementing the new funcarg/setup api. Also Un-optimize
funcargnames discovery for now.
2012-07-18 19:49:14 +02:00
holger krekel
4766497515
V3 draft of resource api
2012-07-16 11:11:26 +02:00
holger krekel
38b18c44e9
ci
2012-07-18 19:48:43 +02:00
Wes Turner
a73c27da13
DOC: typo in doc/en/goodpractices.txt ("pytest" -> "PyTest")
2012-07-18 01:01:37 -05:00
holger krekel
dbaf7ee9d0
v2 of resources API draft
2012-07-16 10:47:41 +02:00
holger krekel
7a90bed19b
V1 of the resources API draft
2012-07-16 10:47:00 +02:00
holger krekel
8adac2878f
put automatic funcarg_ API to Py*objects only, refine internal subclassing and initialisation logic
2012-07-16 10:46:44 +02:00
holger krekel
66ed2d123a
add a little example on how to group test execution by parametrized resource
2012-07-14 12:06:58 +02:00
Johannes
b902c36bfc
Fix typo in terminal help text
2012-07-12 17:00:48 +01:00
Benjamin Peterson
099ac1e1f4
cleanup test a bit
2012-07-07 08:01:44 -07:00
Floris Bruynooghe
1aca6c9d7c
Fix extension of of cached re-written file
...
With PYTHONOPTIMIZE set this had the extension of "o" instead of ".pyo".
Fixes issue #168 .
2012-07-07 16:09:53 +02:00
Ronny Pfannschmidt
fe24e01a03
merge
2012-07-07 13:21:45 +02:00
holger krekel
838e758cf7
exit with errno instead of always signalling success, thanks John Anderson
2012-07-07 07:40:51 +02:00
holger krekel
ddd4467fdd
merge
2012-07-02 13:23:41 +02:00
holger krekel
5574e45749
fix issue165 - fix broken links in documentation, also point to stackoverflow from FAQ and contact page
2012-07-02 13:13:48 +02:00
Ronny Pfannschmidt
74e55493d1
test and implement showing verbose assert repr for py.test -vv
2012-06-27 17:26:55 +02:00
holger krekel
ecec653e98
fix issue151 - heuristcally lookup conftest files on all command line arguments, not just the first existing dir/file
...
you can install the corresponding pytest-2.3.dev2 via
pip install -i http:/pypi.testrun.org -U pytest
2012-06-26 21:56:03 +02:00
holger krekel
0ba0f91720
remove unused code
2012-06-26 20:28:09 +02:00
holger krekel
ea49993459
fix issue139 - make it possible to access funcargs from pytest_runtest_setup
2012-06-25 18:08:12 +02:00
holger krekel
b4b86159cd
better name for the oejskit-compatibility-class.
2012-06-25 17:49:13 +02:00
holger krekel
91b6f2bda8
mid-scale refactoring to make request API available directly on items.
...
This commit was slightly tricky because i want to backward
compatibility especially for the oejskit plugin which
uses Funcarg-filling for non-Function objects.
2012-06-25 17:35:33 +02:00
holger krekel
227d847216
fix problem with unicode in writing failure representations to terminal, thanks ThomasWaldmann
2012-06-24 16:42:31 +02:00
holger krekel
6e0c30d67d
fix skip/xfail confusion, reported and discussed on
...
http://stackoverflow.com/questions/11105828/in-py-test-when-i-explicitly-skip-a-test-that-is-marked-as-xfail-how-can-i-get
2012-06-23 11:32:32 +02:00
holger krekel
65cbf591d8
ignore .cache
2012-06-22 10:53:28 +02:00
holger krekel
e79a312b92
fix internal test setup failure
2012-06-21 11:30:10 +02:00
holger krekel
42d44bfd43
fix some pep8 issues, more to go ... is there a tool that helps with pep8-ifying?
2012-06-21 11:20:29 +02:00
holger krekel
ccc04b9fc4
some refinements to reporting and hook order
2012-06-21 11:07:22 +02:00
holger krekel
18306a4644
add header info: always report 3rd party plugins in test runs
2012-06-20 00:16:47 +02:00
holger krekel
1bbe1d086c
fix issue160 a failing setup of an xfail-marked tests should
...
be reported as xfail (not xpass)
2012-06-19 23:48:39 +02:00
holger krekel
672919a8e2
fix faq once more to get rid of the strange "missed" bit.
2012-06-18 11:47:57 +02:00
holger krekel
f176ee3a1c
(correction-commit for wrong previous changelog message)
...
fix issue159 -- improve http://pytest.org/latest/faq.html
especially with respect to the "magic" history, also mention
pytest-django, trial and unittest integration.
2012-06-17 11:01:14 +02:00
holger krekel
474b177da8
fix issue129 - improve http://pytest.org/latest/faq.html
...
especially with respect to the "magic" history, also mention
pytest-django, trial and unittest integration.
2012-06-17 10:59:30 +02:00
holger krekel
b2e87ce027
change pluginmanager.register API to raise ValueError if the plugin object or the name is already registered
2012-06-16 21:29:04 +02:00
holger krekel
2e163e4aae
mention pep302 in docstring
2012-06-16 10:14:52 +02:00
holger krekel
63eacd9dd5
fix comment handling
2012-06-12 13:41:29 +02:00
holger krekel
b008e489ba
fix ReST errors, increment doc-version and push to pytest.org
2012-06-11 16:24:42 +02:00
Floris Bruynooghe
d5078001c9
Don't use deprecated API in example
2012-06-11 13:24:30 +01:00
holger krekel
8b3ac3b03a
also set release
2012-06-07 19:26:18 +02:00
holger krekel
6af20a5290
use doc-versions that can increment separately from the pytest version
2012-06-07 19:18:50 +02:00
holger krekel
eb1b1005ae
added an example on how to do python2/python3 customized test collection
2012-06-07 12:39:53 +02:00
holger krekel
6fd57ec786
extend marker section with a platform example
2012-06-06 16:34:13 +02:00
t2y
03a814a859
added Japanese translation for 2.2.4 (79a5b776a6f3)
2012-06-06 08:58:02 +09:00
t2y
b4c2161e35
fixed to find the CHANGELOG's path
2012-06-06 08:54:35 +09:00
t2y
9198069739
added "docs/en" directory and moved
2012-06-06 08:52:53 +09:00
holger krekel
4d77653bb0
simplify activate_funcargs
2012-06-03 21:06:43 +02:00