holger krekel
f5d796b093
improve docs further, refine unittest docs, rename ``autoactive`` to ``autouse``
...
to better match ``@pytest.mark.usefixtures`` naming.
2012-10-12 14:52:36 +02:00
holger krekel
0594265adc
fix output of --fixtures for @pytest.fixture defined functions.
2012-10-09 16:49:04 +02:00
holger krekel
fb3af07ef4
try to move docs to a more releasable state, also refine
...
release announce and a few coding bits
2012-10-09 14:35:17 +02:00
holger krekel
916c1c170e
somewhat simplify pytest_generate_tests example
2012-10-08 13:19:31 +02:00
holger krekel
df643f65f0
remove support for @pytest.fixture on classes, to be reserved for future use:
...
Fixture-classes could offer setup/teardown/addoption/configure methods
and provide higher level support. Preliminary allowing it to work on classes
may make introducing it harder.
2012-10-08 11:22:31 +02:00
holger krekel
30b10a6950
- fix doc references, refactor fixtures docs to more quickly start
...
with examples instead of big text blobgs
- also silence -q and -qq reporting some more
2012-10-07 13:06:17 +02:00
Floris Bruynooghe
f588eae4f5
Use updated names
2012-10-05 22:44:18 +01:00
holger krekel
d8c365ef2c
implement pytest.mark.usefixtures and ini-file usefixtures setting
...
and also refine fixture docs a bit - fixtures.txt should now mostly
reflect the current state of the implementation
2012-10-05 19:20:40 +02:00
holger krekel
bb07ba7807
rename a number of internal and externally visible variables to use the fixture name
...
rather than funcargs. Introduce .funcargnames compatibility attribute for backward compat.
2012-10-05 14:24:44 +02:00
holger krekel
9251e747af
rename pytest.factory usages into pytest.fixture ones
2012-10-05 10:21:35 +02:00
holger krekel
439cc1238f
merge factories/funcargs and setup functions into the new "fixture" document
2012-10-05 10:21:35 +02:00
holger krekel
738f14a48a
improve the parametrization scenario example to sort by id, rather than by file-order, see also: http://stackoverflow.com/questions/12521924/pytest-running-scenarios-in-the-correct-order-in-the-class
2012-09-21 09:39:54 +02:00
holger krekel
6cb3281ddd
allow factory/setup-markers on classes, using their respective __init__ methods which can use the funcarg mechanism
2012-09-18 14:00:47 +02:00
holger krekel
a7c6688bd6
implement full @pytest.setup function unittest.TestCase interaction
2012-09-18 10:54:12 +02:00
holger krekel
c2480f5c54
fix @funcarg to @factory
2012-09-17 17:36:08 +02:00
holger krekel
a94bb0a8bb
introduce a new "markers" attribute to nodes and the request object. It is
...
a dynamic class making holdin
2012-09-17 17:32:23 +02:00
holger krekel
646c2c6001
drops special testcontext object in favour of "old" request object, simplifying communication and code for the 2.2-2.3 transition. also modify docs and examples.
2012-09-17 16:36:10 +02:00
holger krekel
41ad7dbae1
fix issue185 monkeypatching time.time does not cause pytest to fail
2012-09-01 09:58:10 +02:00
holger krekel
f07ebc6615
add talk from brianna and me from 2012
2012-08-26 16:30:01 +02:00
holger krekel
aa84359bd9
Merged in pfctdayelise/pytest (pull request #17 )
2012-08-16 13:23:42 +02:00
Brianna Laugher
f275830ca7
expand list of projects based on URLs from holger
2012-08-16 19:31:21 +10:00
holger krekel
f472f21406
fix/update some docs to work with @pytest.factory instead of pytest_funcarg__ naming.
2012-08-13 12:58:08 +02:00
holger krekel
f4963270c6
fix typos
2012-08-11 20:02:34 +02:00
Brianna Laugher
08c3b1b80f
Fix URL for waskr project
2012-08-10 15:44:58 +10:00
holger krekel
172505f703
fix/consolidate --junitxml=path construction with relative pathes
2012-08-04 10:33:43 +02:00
holger krekel
6746a00cb8
majorly refine funcargs docs and rename "resources.txt" to "funcargs.txt" so that existing web links will eventually land at this new page when pytest is released. Also integrated the detailed reasoning and update setup function docs
...
to reflect latest discussions and feedback gathered on py-dev mailing list.
2012-08-03 19:08:27 +02:00
holger krekel
46dc7eeacb
move pytest.mark.factory/setup to pytest.factory/setup, as per flub 's suggestion
2012-08-02 12:41:46 +02:00
holger krekel
ae241a5071
refine documentation, move setup to own "setup" page and provide
...
some more examples. move old setup_module/... to xunit_old page.
2012-08-02 12:07:54 +02:00
holger krekel
5fd84c35dd
reshuffle docs, try to get a bit closer to release-relevant documentation
2012-08-01 14:52:51 +02:00
holger krekel
449b55cc70
- enhance ordering of tests using parametrized resources
...
- introduce a refined way to perform finalization for setup functions
which does not use cached_setup() anymore
2012-08-01 09:07:32 +02:00
holger krekel
d68c65b493
minimize active parametrized non-function scoped resources by
...
- re-ordering at collection time
- modifying setup/teardown
2012-07-30 10:46:03 +02:00
holger krekel
fa61927c6b
introduce @pytest.mark.setup decorated function,
...
extend newexamples.txt and draft a V4 resources API doc.
2012-07-24 12:10:04 +02:00
holger krekel
d4a487c725
allow funcarg factories to receive funcargs
2012-07-23 10:55:09 +02:00
holger krekel
76584b53a1
clarify and add to sort-by-session-scoped parametrized resources example
2012-07-23 10:54:57 +02:00
holger krekel
6b0f0adf5b
implement a scope/parametrized examples using the so-far new features
...
also fix a bug with scoping/parametrization
2012-07-20 14:16:50 +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
66ed2d123a
add a little example on how to group test execution by parametrized resource
2012-07-14 12:06:58 +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
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
672919a8e2
fix faq once more to get rid of the strange "missed" bit.
2012-06-18 11:47:57 +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
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
971f96468c
fix py2py3 example tests
2012-06-03 16:10:10 +02:00
holger krekel
c11202b549
remove pyc file
2012-06-01 20:13:18 +02:00
holger krekel
42d63832b7
draft example for skipping py2 and py3 only tests on
...
a per-module level.
2012-05-23 23:40:41 +02:00
holger krekel
f5f3fe54d5
update examples with 2.2.4 version, ReST fixes
2012-05-22 18:30:34 +02:00
holger krekel
69fc6987ad
upgrade inlined distribute_setup.py
2012-05-22 17:24:43 +02:00
holger krekel
0790f7a75f
fix issue 144 - wrong classname in junitxml
2012-05-22 17:18:04 +02:00
Jonathan Peirce
91c41cd6b3
minor fix to docs/usage
2012-05-22 12:24:53 +01:00
holger krekel
e18abfd013
fix issue143 - call unconfigure/sessionfinish always when
...
configure/sessionstart where called
use exitcode 4 (instead of 3 which signaled an internal error)
when an initial directory/file was not found
2012-05-17 23:11:23 +02:00
holger krekel
329dca42a7
add release announcement
2012-05-17 15:25:58 +02:00
Ronny Pfannschmidt
166aae4418
word change in the docs fixes #130
2012-03-22 08:26:37 +01:00
Ronny Pfannschmidt
812ba87f37
add acomment so highlighting won\'t fail
2012-03-15 15:22:13 +01:00
Ronny Pfannschmidt
2b0887fa5f
document integration with setuptools/distribute test command and tests_require
2012-03-15 15:15:21 +01:00
holger krekel
51d29cf4c6
mention 2.2.3 in 2.2.2 release announce
2012-02-05 23:54:20 -05:00
holger krekel
87b4cb283f
regen docs / examples for 2.2.2
2012-02-05 18:33:04 -05:00
holger krekel
83505b790d
preparing release 2.2.2
2012-02-05 17:32:01 -05:00
holger krekel
a756dc8106
fix issue118 - typo
2012-02-02 06:24:12 -05:00
holger krekel
d88fe07377
fix link to pdf from contents page
2012-01-19 20:53:21 +01:00
holger krekel
2e23057804
remove nonsennse part of commit related to "mp" shortcut.
...
I wonder if introducing "mp" as a shortcut to monkeypatch
is a good idea, actually :)
2012-01-06 20:40:14 +00:00
holger krekel
303f49a5ad
bump version, mention "mp" also in the docs and changelog
2012-01-06 20:37:18 +00:00
holger krekel
ccc1b21ebd
internally keep multiple applications of the same markers as separate
...
entities such that the new iter() API can iterate over pytest.mark
function attributes, getting all such applications. See added example
for more info.
2011-12-28 15:47:18 +00:00
holger krekel
dc0535f7d5
fix typo, thanks jurko
2011-12-20 14:12:12 +00:00
holger krekel
f5f8695587
add 2.2.1 announce to index
2011-12-16 12:12:23 +00:00
holger krekel
b83a3bcc80
mention pytest-xdist-1.8
2011-12-16 11:43:05 +00:00
holger krekel
3a3f69372f
regen docs, prepare release 2.2.1
2011-12-16 10:38:34 +00:00
Jurko Gospodnetić
af0edf0d10
Documentation cleanup - corrected typos & minor stylistic changes.
2011-12-05 11:10:48 +01:00
holger krekel
50c9e3f654
improve parametrize() docs
2011-11-19 23:45:05 +00:00
holger krekel
59b8ea1746
fix makeinstall
2011-11-18 21:28:14 +00:00
holger krekel
cf02fb60c1
isolate test example run
2011-11-18 21:26:38 +00:00
holger krekel
679d72eedf
fix typo in alfredo's name
2011-11-18 19:16:00 +00:00
holger krekel
48e6823c7a
small fix to release announcement
2011-11-18 18:45:15 +00:00
holger krekel
6b4e6eee09
improve release announcement, shift and fix examples a bit. Bump version to 2.2.0
2011-11-18 18:32:11 +00:00
holger krekel
a5e7b2760d
fix issue90 - perform teardown after its actual test function/item. This is implemented by modifying the runtestprotocol to remember "pending" teardowns and call them before the setup of the next item.
2011-11-18 16:01:29 +00:00
holger krekel
ec0565fac5
introduce metafunc.parametrize() and @pytest.mark.parametrize with examples. deprecate metafunc.addcall()
2011-11-17 11:09:21 +00:00
holger krekel
a51e52aee3
fix issue89 apply Daniel Nouri's patch to doctest/--pdb interaction.
2011-11-15 13:28:22 +00:00
holger krekel
9d3e51af9f
fix issue50 (add a reference to the already implemented -m) and improve release annoucnement and changelog.
2011-11-12 15:10:12 +00:00
holger krekel
36c42b5c15
introduce a new -m mark_expression option
2011-11-11 23:02:06 +00:00
holger krekel
bc8ee95e72
add ini-file "markers" option and a cmdline option "--markers" to show defined markers. Add "skipif", "xfail" etc. to the set of builtin markers shown with the --markers option.
2011-11-11 22:56:11 +00:00
holger krekel
67fbd24ebf
improve mark.txt document and add new regristration/markers features.
...
(welcome to documentation driven development)
2011-11-11 22:56:06 +00:00
holger krekel
7144cec580
avoid race condition in test, fix doc link
2011-11-08 22:06:57 +00:00
holger krekel
29bf205f3a
make --durations also show the execution times of setup/teardown calls. This requires a slight incompatibility - pytest_runtest_logreport now sees setup/teardown reports even if the tests passed.
2011-11-08 17:53:46 +00:00
holger krekel
3b9fd3abd8
introduce --durations=N showing slowest test executions
2011-11-08 17:20:56 +00:00
holger krekel
ae54151467
fix issue83 - add a link to already generated list of funcargs
2011-10-21 15:45:56 +02:00
holger krekel
448f1c0d9c
add 2.1.3 release announce to index, add floris to thanks
2011-10-18 20:58:19 +02:00
holger krekel
346da57a8a
bump to version 2.1.3, add release announce, regen docs (with make regen)
2011-10-18 20:07:45 +02:00
holger krekel
172d46abd0
add release announcement for 2.1.2
2011-09-24 08:06:39 +02:00
holger krekel
b490047b1c
make pip a bit more prominent now that it works on py3
2011-09-23 07:35:47 +02:00
Dinu Gherman
fab7615c8a
Capitalised start of headlines, added -ing to a few headlines.
2011-09-06 11:43:42 +02:00
holger krekel
88c5299a94
fix announcement
2011-08-20 18:51:53 +02:00
holger krekel
09933b8b04
bump to 2.1.1, regen examples, add release announcement
2011-08-20 18:37:00 +02:00
holger krekel
fb1b1d9aae
jython-2.5.2 has a core bug preventing pytest to run :(
2011-08-19 19:25:52 +02:00
holger krekel
fba2079292
bump version number, refine goodpractises wrt to importing test modules
2011-08-19 07:58:50 +02:00
holger krekel
a70293fdb7
add ability to build pytest man page with "cd doc ; make man". Is to be
...
found in doc/_build/man/pytest.1 afterwards.
also streamline PDF generation a bit.
2011-07-14 23:13:32 +02:00
holger krekel
46b1348b79
merge heads
2011-07-12 17:21:48 +02:00
holger krekel
709da3fe84
add benjamin's post to docs, up version, open changelog
2011-07-12 10:38:02 +02:00
holger krekel
dd4b252749
add experimental "+1" button
2011-07-09 13:48:55 +02:00
holger krekel
59067684cd
switching back to pytest.org self-hosting for docs - there is too much issues where i needed/need to poke people :/
2011-07-09 13:23:58 +02:00
holger krekel
50c8218501
mention pypi package name
2011-07-09 12:02:22 +02:00
holger krekel
dc8225afea
adding release announcement
2011-07-08 13:16:32 +02:00
holger krekel
8713f4ba60
fix issue 35 - provide download link and improved PDF version
2011-07-08 12:42:26 +02:00
holger krekel
79ac8c6681
reshuffle start page as per gutworth feedback
2011-07-06 22:05:48 +02:00
holger krekel
418cd482b1
fix a doc link
2011-07-06 21:47:33 +02:00
holger krekel
df85ddf0d2
don't import py
2011-07-06 20:25:54 +02:00
holger krekel
e7c8fc7db9
rearrange and streamline documentation navigation to better work
...
with readthedocs and also with PDF generation.
2011-07-06 20:21:59 +02:00
holger krekel
46950ef19a
rename and simplify the assert option:
...
cmdline usage is now: --assert=rewrite/reinterp/plain
there is no conflict detection (don't think that's neccessary)
2011-07-05 17:29:53 +02:00
Benjamin Peterson
4fcd346838
update assert docs
2011-06-29 10:52:39 -05:00
holger krekel
f4eb15632d
refine and streamline Floris example for an assert_reprcompare hook.
2011-06-20 18:12:48 +02:00
Floris Bruynooghe
d027f9d546
Add pytest_assertrepr_compare() docs
2011-06-20 14:18:12 +02:00
holger krekel
8de50347fb
some fixes and clarifications to assert docs
2011-06-18 22:30:46 +02:00
Benjamin Peterson
4b4a2c8162
merge heads
2011-06-18 15:09:50 -05:00
Benjamin Peterson
29d58ffdf2
note condition for introspection happening
2011-06-18 15:07:36 -05:00
holger krekel
9ea58242d4
fix getting-started which claimed you need to avoid side effect in asserts
2011-06-15 07:50:34 +02:00
Benjamin Peterson
8f6477f695
fix spacing
2011-06-12 16:39:38 -05:00
holger krekel
ce1b456762
back out pytest_configure_funcargs hook for now
2011-06-01 15:08:54 +02:00
holger krekel
5690beab5a
merge Benjamin's assertion-rewrite branch: all assertion related code is now part of py.test core distribution - the builtin assertion plugin to be precise.
...
See doc/assert.txt for details on how what has been improved.
2011-05-31 14:11:53 +02:00
Benjamin Peterson
00dee742b0
describe how assert rewriting interacts with cross test imports
2011-05-28 19:00:47 -05:00
holger krekel
4b7293428b
add Mozilla QA people to pytest users
2011-05-29 00:47:32 +02:00
Benjamin Peterson
6fdcecb864
typo
2011-05-28 16:04:36 -05:00
Benjamin Peterson
f63ff5267c
s/debugging/introspection/
2011-05-28 16:01:02 -05:00
Benjamin Peterson
e98057130d
a few more sentences
2011-05-27 12:30:27 -05:00
Benjamin Peterson
606ea870f0
versionadded and versionchanged for asserts
2011-05-26 23:13:39 -05:00
Benjamin Peterson
e22d3e03fe
doc updates for new assertion debugging
2011-05-26 21:08:55 -05:00
Ronny Pfannschmidt
b6815538c5
introduce the pytest_configure_funcargs hook for better control on funcarg instanciation/configuration
2011-05-12 23:47:05 +02:00
holger krekel
ea936213bc
fix link to pypy tests
2011-05-12 13:52:14 +02:00
holger krekel
07e870dc14
unbump version to retag
2011-05-11 11:54:30 +02:00
holger krekel
ee53b1f591
bump version
2011-05-11 11:23:46 +02:00
holger krekel
63ccec90be
regen examples to use 2.0.3 version number
2011-05-01 12:38:56 +02:00
holger krekel
f8137390c2
add release announcement
2011-04-17 23:16:14 +02:00
holger krekel
cf4e14baed
add @classmethod although it's not strictly neccessary for basic cases.
2011-03-16 19:05:28 +01:00
holger krekel
6aaaaa8e67
fix issue link
2011-03-11 15:25:37 +01:00
holger krekel
527bc472a8
fix install location
2011-03-09 13:59:00 +01:00
holger krekel
007f0daeb9
bump to release version, regenerate docs
2011-03-09 10:58:36 +01:00
holger krekel
f8e3fe8fbf
mention that one might need to use the pypi.testrun.org repository
2011-03-07 11:53:14 +01:00
holger krekel
22fac92ca0
improve and clarify skipping docs
2011-03-05 13:08:43 +01:00
holger krekel
fadd1a2313
incorporate typo/grammar fixes from Laura and respond to a number of issues she raised in comments.
...
Also fixed links and some other bits and pieces.
2011-03-03 23:40:38 +01:00
holger krekel
070c73ff2f
fix issue30 (the second time)
...
put module globals into namespace for xfail and skipif expressions
2011-03-03 23:22:55 +01:00
holger krekel
8d62e4c71c
add "issues" to layout of web page
2011-02-16 00:32:57 +01:00
Brianna Laugher
f6c1e49287
Fix mistakes in monkeypatch doc example
2011-02-18 16:52:18 +11:00
holger krekel
27577170e1
doc typo fixes from Victor Garcia, thanks!
2011-02-17 14:46:40 +01:00
holger krekel
70ceb946e4
fix typo, thanks antocuni
2011-02-14 18:49:16 +01:00
holger krekel
d2f9b41519
some doc fixes and improvements to parametrized test examples, thanks ccxCZ for review and suggestions.
2011-02-09 14:55:21 +01:00
holger krekel
2bd0c98801
up version, commit 2.0.1 annoucnement as sent out
2011-02-07 11:54:08 +01:00
holger krekel
98cd8edb71
regen docs with examples
2011-02-07 11:45:37 +01:00
holger krekel
e7b69a2ac0
doc fixes
2011-02-07 11:39:05 +01:00
holger krekel
b04f87b1a6
add release announcement
2011-02-03 15:58:22 +01:00
holger krekel
35b0b376f0
bumping version to pytest-2.0.1, regen docs and examples
2011-02-03 15:14:50 +01:00
holger krekel
2b750074f4
fix typo (thanks derdon)
2011-01-13 23:50:10 +01:00
holger krekel
88cfaebbcb
fix issue12 - show plugin versions with "--version" and "--traceconfig" and also document how to add extra information to reporting test header
2011-01-12 19:39:36 +01:00
Benjamin Peterson
8f5d837ef6
duplicate word
2010-12-23 14:56:38 -06:00
holger krekel
0ec5f3fd6c
small improvements, add assertion improvement to CHANGELOG
2010-12-10 12:28:04 +01:00
Floris Bruynooghe
8631c1f57a
Add "not in" to detailed explanations
...
This simply uses difflib to compare the text without the offending
string to the full text.
Also ensures the summary line uses all space available. But the
terminal width is still hardcoded.
2010-12-10 01:03:26 +00:00
holger krekel
4086d46378
fix issue11 doc typo (thanks Eduardo)
2010-12-07 15:25:25 +01:00
holger krekel
a15983cb33
rather named the new hook cmdline_preparse
2010-12-07 12:34:18 +01:00
holger krekel
7db9e98b55
introduce a pytest_cmdline_processargs hook to modify/add dynamically to command line arguments.
2010-12-07 12:14:12 +01:00
holger krekel
c7531705fc
refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration
2010-12-06 16:54:42 +01:00
holger krekel
752965c298
add some docs and new projects
2010-12-06 10:41:20 +01:00
holger krekel
d894bae281
bumping version to a dev version, run tests by using python PyPI by default
2010-11-26 13:37:00 +01:00
holger krekel
f1fc6e5eb6
regenerating examples
2010-11-26 13:26:56 +01:00
Benjamin Peterson
ca72c162c8
need double colon here
2010-11-25 20:55:32 -06:00
holger krekel
b622c85bbf
last changes, preparing 2.0.0
2010-11-25 20:06:42 +01:00
holger krekel
9e7ef58cfd
some small pre-release updates
2010-11-25 16:36:25 +01:00
holger krekel
0efa6e5aea
adding anto's projects
2010-11-25 13:00:01 +01:00
holger krekel
1df0eaa387
tons and tons of refinements and additions to docs
2010-11-25 12:11:10 +01:00
Benjamin Peterson
8a527b95f2
don't try to load conf.py
2010-11-24 21:27:10 -06:00
holger krekel
4cb2c74159
introduce new discovery mechanism
...
XXX experiment with using it before introducing it or wait
for feature request
2010-11-24 22:01:04 +01:00
holger krekel
03ee8b7fe0
[mq]: doc
2010-11-24 19:02:08 +01:00
holger krekel
6ebd5f2900
improve docs
2010-11-24 00:23:22 +01:00
holger krekel
0357d3afda
refine initialization and collection reporting, introduce a progress bar
2010-11-22 11:59:56 +01:00
holger krekel
f456e376b9
refine tmpdir handling and docs
...
- clear tmpdir specified with --basetemp
- remove config.mktmp and config.getbasetemp methods
2010-11-21 17:43:18 +01:00
holger krekel
158e160823
merging and refining examples, also refining skipping documentation.
2010-11-20 21:35:55 +01:00
holger krekel
093bef0a08
refine release announcement
2010-11-18 18:42:33 +01:00
holger krekel
0325441099
add some missing files
2010-11-18 15:04:50 +01:00
holger krekel
582486d531
refine docs and docstrings, fix some small bits here and there while doing that.
2010-11-18 14:56:16 +01:00
holger krekel
a698465487
streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*".
2010-11-17 22:12:16 +01:00
holger krekel
acd286f82f
run doctests in .txt/.rst files directly specified on command line irrespective of "test*.txt" pattern.
2010-11-17 14:33:21 +01:00
holger krekel
929291775e
flat is better than nested (cont'd):
...
- pytest.py is new module, making "python -m pytest" work always
- _pytest/*.py now contains core.py, hookspec and the plugins, no sub packages
2010-11-13 11:10:45 +01:00
holger krekel
2e4e9eb745
internally use pytest.* instead of ``py.test.*`` in many places.
...
make sub namespace names 'collect' and 'cmdline' available on pytest directly
2010-11-13 09:05:11 +01:00
holger krekel
55dff651f4
refine initilization: read config also from a "pytest.ini" file if exists
...
and revert earlier commandline option and group ordering change.
2010-11-07 16:10:22 +01:00
holger krekel
6461295ab4
probably the last major internal cleanup action: rename collection to
...
session which now is the root collection node. This means that
session, collection and config objects have a more defined
relationship (previously there was no way to get from a collection
node or even from a runtest hook to the session object which
was strange).
2010-11-07 10:19:58 +01:00
holger krekel
885c7ce281
some fixes for --pyargs situations and the docs, remove wrongly added test
2010-11-07 00:22:16 +01:00
holger krekel
707775dcfa
introduce new --testpkg importpath option, add more meat to draft release announcement
2010-11-06 22:17:33 +01:00
holger krekel
fcebf4f557
some more improvements and updates to docs, add release announcements
2010-11-06 11:38:53 +01:00
holger krekel
d108235095
implement and document new invocation mechanisms, see doc/usage.txt
...
also rename pytest._core to pytest.main for convenience.
2010-11-05 23:37:31 +01:00
holger krekel
b1e4301457
document and refine py.test.fail helper and strike superflous ExceptionFailure class
...
refine builtin organisation and start a new doc
2010-11-05 23:37:31 +01:00
holger krekel
49319ba729
some more refinements to docs
2010-11-05 23:37:25 +01:00
holger krekel
c18cca9d54
massive documentation refinements
2010-11-02 00:53:53 +01:00
holger krekel
32ac7a7c6e
rename addargs to addopts, make adding of opts configurable
2010-11-01 08:55:14 +01:00
holger krekel
5616874823
streamline some hook docs and option handling, remove cruft bits, fix doc links
2010-10-31 23:28:31 +01:00
holger krekel
8871ca5bfa
introduce "-q" option which decreases verbosity and basically leads to a unittest/nosetest-style "." output
...
add it in an ini file like this:
[pytest]
addargs=-q
and you get that by default.
2010-10-31 19:51:16 +01:00
holger krekel
23f8d8bce7
allow modules/conftest files specify dotted import paths for loading plugins
2010-10-31 19:01:46 +01:00
holger krekel
bc574f4d94
remove superflous collect_by_name, and improve some docs
...
--HG--
branch : trunk
2010-10-31 18:01:33 +01:00
holger krekel
b6ec5a575d
get option settings from ini-file. make getting configuration options from conftest.py only an internal feature.
...
--HG--
branch : trunk
2010-10-31 17:41:58 +01:00
holger krekel
1280041f0c
add and document new parser.addini(name, description) method to describe
...
ini-values. Also document the parser object with its public methods.
--HG--
branch : trunk
2010-10-30 19:23:50 +02:00
holger krekel
2d8bcbdf55
document "setup.py test" to use genscript'ed version.
...
--HG--
branch : trunk
2010-10-28 09:29:56 +02:00
holger krekel
c9e629c870
remove old ways to set option defaults, relying on global setup.cfg or tox.ini files now.
...
revamp py.test --help-config
--HG--
branch : trunk
2010-10-27 22:29:01 +02:00
holger krekel
b86b1628bb
introduce reading of setup.cfg / ini-style configuration files
...
rename internal config.Error to pytest.UsageError
--HG--
branch : trunk
2010-10-27 19:35:27 +02:00
holger krekel
f7b4f70a16
make examples less nested for now
...
--HG--
branch : trunk
2010-10-27 17:36:27 +02:00
holger krekel
65675d5a95
link to PyYAML parser
...
--HG--
branch : trunk
2010-10-27 15:14:12 +02:00
holger krekel
33951d48f1
a new example for doing non-python extensions
...
--HG--
branch : trunk
2010-10-27 14:52:28 +02:00
holger krekel
f466d35771
add example for catching exceptions, simplify install doc
...
--HG--
branch : trunk
2010-10-24 21:55:27 +02:00
holger krekel
76a1bf391e
fix some doc bits
...
--HG--
branch : trunk
2010-10-22 10:09:26 +02:00
holger krekel
6411fa69bc
fix example good -> bad (thanks frank)
...
--HG--
branch : trunk
2010-10-17 11:11:32 +02:00
holger krekel
80778eb3ae
add an example for testing from an app if a test run is ongoing
...
--HG--
branch : trunk
2010-10-17 00:10:22 +02:00
holger krekel
170346654c
turn most funcargrequest attributes into properties and document them.
...
--HG--
branch : trunk
2010-10-16 23:59:38 +02:00
holger krekel
8853c5bdef
merge install and basic usage into getting-started.txt
...
add an assert1.txt
--HG--
branch : trunk
2010-10-14 01:25:09 +02:00
holger krekel
2e4391d28e
major refinements to documentation and examples
...
--HG--
branch : trunk
2010-10-13 19:30:00 +02:00
holger krekel
9925ac883e
refine and document conftest loading and handling.
...
--HG--
branch : trunk
2010-10-13 18:45:07 +02:00
holger krekel
17719b99a1
select tests by call-id, add and refine documentation around it
...
--HG--
branch : trunk
2010-10-13 12:26:14 +02:00
holger krekel
04c41cb672
shift config initialization to own "config" plugin
...
--HG--
branch : trunk
2010-10-12 15:34:32 +02:00
holger krekel
6631447161
merge config, pluginmanager, main into one file
...
--HG--
branch : trunk
2010-10-12 12:54:32 +02:00
holger krekel
251fb0ab1c
various documentation related refinements
...
--HG--
branch : trunk
2010-10-12 10:59:04 +02:00
holger krekel
a82a6bb058
regen docs, add a specific test_collectonly.py example
...
--HG--
branch : trunk
2010-10-11 13:38:16 +02:00
holger krekel
b5b8e5f0c2
advance customization docs, enhance docstrings, add more reference object docs.
...
--HG--
branch : trunk
2010-10-11 12:54:28 +02:00
holger krekel
431a582132
regen and extend examples a bit with regendoc.py
...
--HG--
branch : trunk
2010-10-11 10:07:14 +02:00
holger krekel
eee0e14334
internally switch to pytest.plugin.NAME instead of pytest.plugin.pytest_NAME
...
--HG--
branch : trunk
2010-10-11 01:14:40 +02:00
holger krekel
ce3b260b0b
start documenting hooks, improve hookspec docstrings a bit
...
--HG--
branch : trunk
2010-10-11 00:49:54 +02:00
holger krekel
c614adcf48
move and consolidate some more plugin docs
...
--HG--
branch : trunk
2010-10-11 00:14:32 +02:00
holger krekel
d89d0e8b26
fix format of examples so that ronny's regendoc detects it.
...
--HG--
branch : trunk
2010-10-10 23:54:00 +02:00
holger krekel
4ee3831ac9
start reorganizing docs, write more docs, shift plugin docs, to proper documentation,
...
use sphinx, remove old docs ... work in progress.
--HG--
branch : trunk
2010-10-10 23:45:45 +02:00
holger krekel
d1aff902d5
remove pylib things and move things to new pytest namespace
...
--HG--
branch : trunk
2010-10-07 11:59:00 +02:00
Floris Bruynooghe
ec5ea5c05e
Show final value first when explaining an attribute
...
Then show the expansion as a "where" part of the explanation.
--HG--
branch : trunk
2010-10-06 18:20:09 +01:00
holger krekel
6892dc47a3
use repr() to print extra / differing values in assertion comparison failures
...
and guard against failures in detail-representations
--HG--
branch : trunk
2010-10-04 18:49:30 +02:00
Floris Bruynooghe
cd5676adc4
Truncate the text passed to difflib where possible
...
This stops difflib from printing many lines which had no change in
them anyway. It also avoids a bug in difflib which fails or hangs
when there are many trailing lines which are all identical.
--HG--
branch : trunk
2010-09-30 23:15:41 +01:00
Floris Bruynooghe
4b2cb3acbe
Merge tip from py-trunk.
...
--HG--
branch : trunk
2010-09-22 18:14:59 +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
holger krekel
bb6e9848b3
recreated plugin docs
...
--HG--
branch : trunk
2010-09-14 17:35:01 +02:00
holger krekel
9ca7ed647b
finalize release announce and changelog
...
--HG--
branch : trunk
2010-09-14 16:36:34 +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
holger krekel
ba1f6336af
add 1.3.3 release "announcement"
...
--HG--
branch : trunk
2010-08-01 15:21:59 +02:00
holger krekel
677f7c0a6a
remove trailing whitespace everywhere
...
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel
71cb42d263
updating some feature descriptions
...
--HG--
branch : trunk
2010-07-08 20:13:39 +02:00
holger krekel
9d47521cf0
finalizing docs
...
--HG--
branch : trunk
2010-07-08 15:28:54 +02:00
holger krekel
4d4344212f
fixing a doc reference, removing development dependency
...
--HG--
branch : trunk
2010-07-07 16:37:28 +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
f9c5b00ffa
refine and extend custom error reporting particularly for collection-related errors
...
--HG--
branch : trunk
2010-07-04 17:06:50 +02:00
holger krekel
72de7d94fd
adding a link to Floris' new post
...
--HG--
branch : trunk
2010-06-14 15:45:31 +02:00
holger krekel
523704f890
make py.test.raises as-VAR be an ExceptionInfo object
...
but only initialize it after the block is finished.
--HG--
branch : trunk
2010-06-09 14:45:41 +02:00
holger krekel
6951da7da0
merge Ronny's changes, add some documentation and changelog entries
...
--HG--
branch : trunk
2010-06-09 14:26:08 +02:00
holger krekel
64388832d9
introduce a new request.applymarker() function and refactor
...
internally to allow for dynamically adding keywords to test
items.
--HG--
branch : trunk
2010-06-08 02:34:51 +02:00
holger krekel
395bee4bc0
fix name of fedora package, thanks thm
...
--HG--
branch : trunk
2010-05-29 09:15:50 +02:00
holger krekel
73d9900844
add Meme's pytest-cov plugin to the plugin index page
...
--HG--
branch : trunk
2010-05-26 14:48:27 +02:00
holger krekel
2e36e2619f
update plugin docs, restructure release announcement a bit
...
--HG--
branch : trunk
2010-05-25 21:01:43 +02:00
holger krekel
312238c023
update release announcement
...
--HG--
branch : trunk
2010-05-25 20:46:51 +02:00
holger krekel
7fc7b4307b
adding xfail example
...
--HG--
branch : trunk
2010-05-22 17:22:31 +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
4f7ef0b63f
fix issue89 - allow py.test.mark decorators to be used with classes
...
(if you are using >=python2.6)
also allow to have multiple markers applied at class level
and test and fix a bug with chained skip/xfail decorators:
if any of the conditions is true a test will be skipped/xfailed
with a explanation which condition evaluated to true.
--HG--
branch : trunk
2010-05-21 18:11:47 +02:00
holger krekel
c790288a5f
fix issue98 - xdist documentation wrongly told to set pytest_option_X
...
where it is only option_X that is correct.
--HG--
branch : trunk
2010-05-18 18:45:12 +02:00
holger krekel
1706947edd
fix some ReST issues
...
--HG--
branch : trunk
2010-05-05 22:04:53 +02:00
holger krekel
54afd26c7e
fix typo
...
--HG--
branch : trunk
2010-05-05 21:53:36 +02:00
holger krekel
a127767da6
fix interpreter compat
...
--HG--
branch : trunk
2010-05-05 21:03:43 +02:00
holger krekel
a7d646c5e7
updating docs
...
--HG--
branch : trunk
2010-05-05 21:01:54 +02:00
holger krekel
87fcea7eb7
update release announcement
...
--HG--
branch : trunk
2010-05-05 20:19:02 +02:00
holger krekel
45e10f4c48
rename pytest_ignore_collect_path to pytest_ignore_collect before release
...
--HG--
branch : trunk
2010-05-02 15:24:02 +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
f691292aaa
refining changelog + draft release announcement
...
--HG--
branch : trunk
2010-04-27 16:37:30 +02:00
holger krekel
7cd899fd3c
add capturelog generated plugin text
...
--HG--
branch : trunk
2010-04-19 14:44:11 +02:00
holger krekel
e45cd7e35e
fix issue86 - point to pytest-xdist plugin for looponfailing feature.
...
--HG--
branch : trunk
2010-04-14 15:05:39 +02:00
holger krekel
1d28dcf140
add links to new plugins
...
--HG--
branch : trunk
2010-04-12 16:08:12 +02:00
Benjamin Peterson
d994c51ccd
actually skip doc tests if pygments is not available
...
--HG--
branch : trunk
2010-03-09 16:18:27 -06:00
holger krekel
c75d0faa6f
remove cover and xmlresult plugins as they are not easily installable
...
and lead to frustration (thanks again to prologic for getting back on it)
--HG--
branch : trunk
2010-02-10 16:11:19 +01:00
holger krekel
3608d722fa
fix docs to not point to a downloadable plugin if the
...
plugin is external (thanks to prologic for feedbacking
on this confusion)
--HG--
branch : trunk
2010-02-10 14:21:49 +01:00
holger krekel
18b5ddc4dd
note down two issues after having helped prologic - also related to
...
earlier discussions with ronny and others.
--HG--
branch : trunk
2010-02-09 18:32:17 +01:00
holger krekel
222a08ec03
going for the 1.2.1 release
...
--HG--
branch : trunk
2010-02-08 16:39:29 +01:00
holger krekel
33d78f41b2
fix title to not mention distributed programming which
...
is separated out into execnet.
--HG--
branch : trunk
2010-02-02 11:32:21 +01:00
holger krekel
17bd875444
fail doc generation if pygments is not installed
...
--HG--
branch : trunk
2010-01-21 23:24:33 +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
6756416d69
add report_header_info to release announce
...
and remove some ignores/excludes from MANIFEST.in for
a less verbose installation experience
--HG--
branch : trunk
2010-01-18 17:00:22 +01:00
holger krekel
30b756a1a2
add terminal plugin to overview page again
...
--HG--
branch : trunk
2010-01-18 16:26:26 +01:00
holger krekel
49f7972d48
some finalizing docs bit, regen plugin docs
...
--HG--
branch : trunk
2010-01-18 16:18:59 +01:00
holger krekel
1e76202b65
turn this into a black-box test
...
--HG--
branch : trunk
2010-01-18 13:16:58 +01:00
holger krekel
866255e1f5
pushing towards 1.2.0
...
--HG--
branch : trunk
2010-01-18 11:19:59 +01:00
holger krekel
f5e9d91f7b
fix deprecation warnings
...
--HG--
branch : trunk
2010-01-17 10:54:36 +01:00
holger krekel
09671eb6fc
rename logxml plugin to junitxml
...
--HG--
branch : trunk
2010-01-16 23:33:26 +01:00
holger krekel
4a568f43fe
get rid of the funccollector node, which nice-ifies names of funcarg-generated tests nodes, also test and fix one anomaly wrt to funcarg setups and instance uniqueness
...
--HG--
branch : trunk
2010-01-15 17:50:02 +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
40f41496d8
remove dist-testing and looponfail code from core. there remain some (pytest_runner particularly) tests that test both plain and dist modes which cannot be easily dis-entangled. food for thought.
...
--HG--
branch : trunk
2010-01-13 16:00:33 +01:00
holger krekel
d4f5073076
remove figleaf which now lives "outside"
...
--HG--
branch : trunk
2010-01-13 00:47:20 +01:00
holger krekel
b6909e61a0
fix rest syntax error (thanks fijal)
...
--HG--
branch : trunk
2010-01-11 14:33:18 +01:00
holger krekel
9fcd108091
relax a test to pass on jython and fix install docs to include genscript standalone usage.
...
--HG--
branch : trunk
2010-01-03 14:19:31 +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
d541713dca
re-arrange "py.test -h" command line option grouping and update some plugin docs.
...
--HG--
branch : trunk
2010-01-03 12:41:29 +01:00
holger krekel
eebeb1b257
enable doctest plugin by default, add a --doctest-glob option and some documentation, regen plugin docs.
...
--HG--
branch : trunk
2010-01-02 23:30:46 +01:00
holger krekel
a15afb5e48
skip tests using 'capfd' funcarg but not having os.dup. cleanup issues and regen plugin docs.
...
--HG--
branch : trunk
2009-12-30 11:16:20 +01:00
holger krekel
7780e74016
fixup funcargs docs
...
--HG--
branch : trunk
2009-12-29 16:57:56 +01:00
holger krekel
88e61467f1
fixing and cleaning up some tests
...
--HG--
branch : trunk
2009-12-25 00:24:58 +01:00
Benjamin Peterson
98863d1d01
capitialize I
...
--HG--
branch : trunk
2009-12-24 09:06:23 -06:00
holger krekel
8a5c3c0c69
cleanup bin-script creation, fix docs, add FAQ entry about py.test --version
...
--HG--
branch : trunk
2009-12-24 12:27:15 +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
ee1064b13c
adding a link to the tutorial page
...
--HG--
branch : trunk
2009-12-20 22:10:44 +01:00
holger krekel
2ca39443a3
some doc fixes
...
--HG--
branch : trunk
2009-12-17 09:33:41 +01:00
holger krekel
7637a6ecda
fix links, partially thanks to fijal
...
--HG--
branch : trunk
2009-12-11 14:19:18 +01:00
holger krekel
b44e04f28d
adding a warning note, see also issue64.
...
--HG--
branch : trunk
2009-12-07 10:23:04 +01:00
holger krekel
9d5b313aad
adjustments and fixes to test run, distribution files. thanks thm.
...
--HG--
branch : trunk
2009-11-24 15:16:58 +01:00
holger krekel
ed03eef81b
introduce plugin discovery through setuptools "pytest11" entrypoints
...
and refine execnet dependency handling. Prepare 1.1 release
--HG--
branch : trunk
2009-11-23 17:20:36 +01:00
holger krekel
0e03ae1ee8
some forgotten doc fixes
...
--HG--
branch : trunk
2009-11-23 12:23:40 +01:00
holger krekel
8292ff7d0f
fixing docs, adding draft announcement
...
--HG--
branch : trunk
2009-11-20 10:17:49 +01:00
holger krekel
0060869e79
move CHANGELOG back to root level, add entries
...
--HG--
branch : trunk
2009-11-20 00:12:39 +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
41a572ee1e
a bit of padding under the logo
...
--HG--
branch : trunk
2009-11-17 13:45:27 +01:00
holger krekel
1a86d09da4
a few internal test related fixes as to run on a osx/no-execnet situation
...
--HG--
branch : trunk
2009-11-12 21:15:59 +01:00
holger krekel
f4ec2d1ecd
improve deprecation, start changelog
...
--HG--
branch : trunk
2009-11-12 13:10:30 +01:00
holger krekel
e0bca8fe51
fix up install docs and plugin docs for the final release
...
have CHANGELOG be a file containing links instead of a symlink
beause it causes issues with pip-install on some systems.
--HG--
branch : trunk
2009-11-05 17:46:14 +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
4dd6c7679d
adding more alternatives as asked for by bluebird75
...
--HG--
branch : trunk
2009-11-02 14:52:54 +01:00
holger krekel
e584892c12
update and fix docs for installation
...
- rework installation
- add a new FAQ entry related to issue58 Windows/setuptools/multiprocess
- strike api/source references
--HG--
branch : trunk
2009-11-02 13:00:48 +01:00
holger krekel
7aee121bd7
move examples to doc directory
...
--HG--
branch : trunk
2009-10-29 17:54:37 +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
86fc12dd15
resolves issue #59
...
resolves issue #48
Have the path.pyimport() helper raise an EnvironmentError if an
import of a given file returns a module that does not appear to
be coming from the actual path. E.g. for a directory layout like this:
a / test_whatever.py
b / test_whatever.py
calling py.path.local("b/test_whatever.py").pyimport() will
fail if the other globally scoped test_whatever module was
loaded already.
--HG--
branch : trunk
2009-10-28 19:51:20 +01:00
holger krekel
cc3404b832
merged ronny's nose-compatibility hacks, i.e. nosestyle
...
setup_module() and setup() functions are supported.
added a few notes to changelog and documentation about it
--HG--
branch : trunk
2009-10-27 16:49:38 +01:00
holger krekel
fb159b0d40
removing some py.execnet references and moving scripts to execnet repo
...
--HG--
branch : trunk
2009-10-27 09:19:23 +01:00
holger krekel
6c2b1c4363
refine naming, API and docs for py.test.mark mechanism - now contained in pytest_mark plugin
...
--HG--
branch : trunk
2009-10-22 20:57:21 +02:00
holger krekel
c38bb72205
reshuffle/refine option grouping, introduce "terminal reporting options"
...
--HG--
branch : trunk
2009-10-17 17:43:59 +02:00
holger krekel
80f3e33e41
deprecate addgroup / allow ordering of option groups
...
--HG--
branch : trunk
2009-10-17 17:43:33 +02:00
holger krekel
3795b08e95
add --report cmdline option, shift refined xfailed and skipped reporting to skipping plugin
...
--HG--
branch : trunk
2009-10-17 17:42:40 +02: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
1bdc0896ca
introduce "-d" to py.cleanup
...
--HG--
branch : trunk
2009-10-12 11:24:41 +02:00
holger krekel
f10bfbb7e5
resolves #59 - robustify unittest collection
...
--HG--
branch : trunk
2009-10-09 15:09:26 +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
1f29529a24
* don't add distributed command line options when 'execnet' is not
...
installed, report a nice message.
* fix tests and code to work with non-existing execnet
* point execnet doc to the new package
--HG--
branch : trunk
2009-10-02 22:29:22 +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
98b2300266
fix cached_setup to deal properly for test_functions
...
with multiple args. closes #50
--HG--
branch : trunk
2009-09-30 12:52:40 +02:00
holger krekel
8f69d23f18
merging jarko'S fixes, resolves issue #45 , resolves issue #46
...
--HG--
branch : trunk
2009-09-23 19:43:43 +02:00
Benjamin Peterson
d80f37f14a
add changelog entry for last commit
...
--HG--
branch : trunk
2009-09-22 21:07:07 -05:00
holger krekel
22c1ad9f7b
fix a bug with funcarg setup and remove XXX comment because "scope=module" now would work but leaving it as session for now.
...
--HG--
branch : trunk
2009-09-09 23:07:42 +02:00
holger krekel
6d84da39e4
some doc about the experiemntal pytest_gwmanage_newgateway hook.
...
and use process-scope for execnet test funcargs because
of weird setup/teardown issues when running distributedly itself.
--HG--
branch : trunk
2009-09-09 20:45:51 +02:00
holger krekel
b70c7a209d
* moving execnet tests to funcarg-style, some cleanup
...
* slight refinement to FAQ license topic
--HG--
branch : trunk
2009-09-08 10:10:36 +02:00
holger krekel
f9eadc6440
relicense to LGPL, add an FAQ entry reasoning about it.
...
--HG--
branch : trunk
2009-09-08 09:57:19 +02:00
holger krekel
0f29b503ef
monkeypatch, doc, apiwarn, deprecation fixes
...
--HG--
branch : trunk
2009-09-07 17:53:50 +02:00
holger krekel
3c3002ccd5
regen setup.py and docs so that "python3 setup.py build" maybe works if setuptools does
...
--HG--
branch : trunk
2009-09-06 17:17:37 +02:00
holger krekel
c8119d89b6
move test files out of py lib proper
...
* separate all tests from plugins
* simplify implicit inclusion of plugins under test
* have test_initpkg perform direct checks instead of yielding tests
* fix example tests for 3k
--HG--
branch : trunk
2009-09-06 16:59:39 +02:00
holger krekel
5e95feaf90
* add print_, exec_ and _reraise helpers for 2-3 compatible code
...
* consolidate builtins implementation to be compatible with >=2.3
--HG--
branch : trunk
2009-08-28 16:25:29 +02:00
holger krekel
d1932a30ed
deprecate py.compat.doctest|subprocess|textwrap|...
...
(and for now pass through Python stdlib provided modules).
--HG--
branch : trunk
2009-08-27 21:12:55 +02:00
holger krekel
681d344eac
deprecate py.magic.autopath() and finally remove py/magic directory.
...
--HG--
branch : trunk
2009-08-27 18:46:42 +02:00
holger krekel
e391662cff
merge 1.0.x branch to trunk, fix doc link
...
--HG--
branch : trunk
2009-08-27 12:10:42 +02:00
holger krekel
f522838c77
finalizing doc bits for 1.0.2
...
--HG--
branch : 1.0.x
2009-08-27 11:43:46 +02:00
holger krekel
81f7891539
merging 1.0.x branch
...
--HG--
branch : trunk
2009-08-26 22:57:06 +02:00
holger krekel
3be875bfd2
some fixes and small doc updates, aiming to finalize 1.0.2
...
--HG--
branch : 1.0.x
2009-08-26 19:09:52 +02:00
holger krekel
c024dc6417
* using a MANIFEST.in file instead of our own generated MANIFEST file
...
* port the test_install refactoring from trunk, move to bin-for-dist
--HG--
branch : 1.0.x
2009-08-26 11:09:55 +02:00
holger krekel
8ee7bef638
consolidate py/code files into code.py, simplify SafeRepr code and docs.
...
--HG--
branch : trunk
2009-08-25 20:24:43 +02:00
holger krekel
94aef0b771
move and rename html rest helper to rest directory - finally remove py/misc completely
...
--HG--
branch : trunk
2009-08-25 16:15:17 +02:00
holger krekel
d43d69e3db
death to "misc" directories. moved most files out of py/misc, either to a
...
private attic or to other places in the lib.
--HG--
branch : trunk
2009-08-25 16:14:15 +02:00
holger krekel
58a9e71e81
add delattr/delenv/delitem methods and tests, enhance terminalwriter tests
...
--HG--
branch : trunk
2009-08-22 12:45:58 +02:00
holger krekel
27c08ac235
consolidate py/log into fewer files, remove one old approach, sketch simplified API
...
--HG--
branch : trunk
2009-08-22 09:42:12 +02:00
holger krekel
2b8f489d60
moved laura's utestconvert script to a more visible place
...
--HG--
branch : trunk
2009-08-21 12:56:43 +02:00
holger krekel
1fcd373bd5
* introduce py.io.TextIO and py.io.StringIO to help with 3k transition and to clarify
...
intentions when doing "in-memory" files. Replace most usages of StringIO.
* consolidate py.io's files and tests into fewer files, make files 3k-importable
--HG--
branch : trunk
2009-08-20 20:47:39 +02:00
holger krekel
561fdca3a2
move localpath implementation to a single file, simplify unix/posix difference and fix a bit
...
--HG--
branch : trunk
2009-08-20 17:37:06 +02:00
holger krekel
079a2327ec
kill/replace some execnet debug code
...
bump version to "trunk" on trunk
add "py" to rsyncdirs
--HG--
branch : trunk
2009-08-20 16:41:44 +02:00
holger krekel
ab83c4e05c
adding a link to changelog, hope that mercurial versions links correctly
...
--HG--
branch : 1.0.x
2009-08-19 21:02:41 +02:00
holger krekel
4f50ae1336
finalize release announcement
...
--HG--
branch : 1.0.x
2009-08-19 18:25:11 +02:00
holger krekel
d668acfd99
enable nose by default
...
--HG--
branch : 1.0.x
2009-08-19 17:53:08 +02:00
holger krekel
36288223b4
[mq]: 101-prep
...
--HG--
branch : 1.0.x
2009-08-19 17:12:02 +02:00
holger krekel
5e4fcdd14e
added a pytest_helpconfig plugin which groups --version and the new "--help-config" option. rename options and configuration names. streamlines docs.
...
--HG--
branch : 1.0.x
2009-08-19 15:45:01 +02:00
holger krekel
30e87e887d
shift install test, fix example test, add 1.0.1 release announce
...
--HG--
branch : 1.0.x
2009-08-18 20:02:52 +02:00
holger krekel
36189a7aa7
[mq]: 101doc
...
--HG--
branch : 1.0.x
2009-08-18 19:04:57 +02:00
holger krekel
37976be529
[mq]: flexcom
...
--HG--
branch : 1.0.x
2009-08-11 19:00:41 +02:00
holger krekel
b552f6eb46
* add pytest_nose plugin
...
* have unittest functions always receive a fresh instance
--HG--
branch : 1.0.x
2009-08-10 11:27:13 +02:00
holger krekel
afc8e6bd91
more terse reporting of collection errors / tracebacks, bump version number aiming for 1.0.1
...
--HG--
branch : 1.0.x
2009-08-06 14:49:55 +02:00
holger krekel
91597f4100
update various doc bits, fix typos
...
--HG--
branch : 1.0.x
2009-08-04 22:33:24 +02:00
holger krekel
8c8617c354
* rename "rep" to "report" in reporting hooks
...
* refine docs
* bump version data
* improve announcement
--HG--
branch : 1.0.x
2009-08-04 12:00:04 +02:00
holger krekel
1a570011fe
showing relative paths by default, improving xfail output a bit, bumping version info to 1.0.0
...
--HG--
branch : 1.0.x
2009-08-03 16:01:32 +02:00
holger krekel
1349edd3c6
rename iocapture to capture, add/remove some missing files
...
--HG--
branch : 1.0.x
2009-08-03 12:16:12 +02:00
holger krekel
96c863b3c1
rename pocoo to "pastebin" plugin, write documentation, implement whole-session-pasting
...
--HG--
branch : 1.0.x
2009-08-03 11:56:56 +02:00
holger krekel
e80714d701
fixes for python 2.4
...
--HG--
branch : 1.0.x
2009-07-31 15:35:22 +02:00
holger krekel
5156216871
regen manifest, improve docs generation
...
--HG--
branch : 1.0.x
2009-07-31 14:43:04 +02:00
holger krekel
be949f4037
* reworked capturing to only capture once per runtest cycle
...
* added readouterr() method to py.io capturing helpers
--HG--
branch : 1.0.x
2009-07-31 14:21:02 +02:00
holger krekel
dcf194ebb8
simplify py.test.mark API,
...
add more plugin docs
--HG--
branch : 1.0.x
2009-07-28 14:26:32 +02:00
holger krekel
7fabb3df69
update docs, leave out internal plugins
...
--HG--
branch : 1.0.x
2009-07-22 16:09:49 +02:00
holger krekel
5a4b103ab0
regen links and add oejskit place holder text
...
--HG--
branch : 1.0.x
2009-07-22 15:05:09 +02:00
holger krekel
87daedd719
regen MANIFEST, update changelog
...
--HG--
branch : 1.0.x
2009-07-22 14:58:05 +02:00
holger krekel
b7789714fd
regen plugin docs and links
...
--HG--
branch : 1.0.x
2009-07-20 18:56:02 +02:00
holger krekel
16aa1571c0
new cleaner layout, many improvements to docs
...
--HG--
branch : 1.0.x
2009-07-20 18:54:08 +02:00
holger krekel
04a98700d9
* move some test_pytest_terminal tests to become functional/acceptance tests
...
* refine pytest_namespace to not take a config object
--HG--
branch : 1.0.x
2009-07-17 18:07:37 +02:00
holger krekel
60a7556ca3
resolves issue 25
...
fix documentation for cached_setup, thanks to anonymous for reporting.
--HG--
branch : 1.0.x
2009-07-17 14:52:11 +02:00
holger krekel
013381fae1
* add a script for generating plugin docs
...
* improve generation of docs
* refine plugins docs
--HG--
branch : 1.0.x
2009-07-14 21:17:13 +02:00
holger krekel
81d5e572ca
merging some old changes (still struggling with mercurial a bit)
...
--HG--
branch : 1.0.x
2009-07-08 16:44:40 +02:00
holger krekel
183af95526
* refined funcarg docs and CHANGELOG
...
* fixed funcarg setup and error-raising issue
--HG--
branch : 1.0.x
2009-07-05 14:22:01 +02:00
holger krekel
cd5ffcc605
extending and fixing docs about
...
- test config, funcargs
- talks and tutorials
--HG--
branch : 1.0.x
2009-07-04 15:14:14 +01:00
holger krekel
d056149b67
trying to get together a working 1.0.0b7
...
without ez_setup.py
--HG--
branch : 1.0.x
2009-06-30 11:42:57 +01:00
holger krekel
bd8f68555d
re-adding py.test.mark as documented (!) by adding pytest_keyword plugin
...
--HG--
branch : 1.0.x
2009-06-28 13:19:43 +02:00
holger krekel
937e51b4ae
improve docs some further, cleaner release announcement
...
--HG--
branch : 1.0.x
2009-06-26 18:12:06 +02:00
holger krekel
296a660a73
doc refinements
...
introduce '__channelexec__' + docs
--HG--
branch : 1.0.x
2009-06-26 17:48:46 +02:00
holger krekel
250d58729d
another attempt at a full tarball
...
--HG--
branch : 1.0.x
2009-06-24 17:47:29 +02:00
holger krekel
4ab0f25b05
remove scope argument from request.addfinalizer
...
--HG--
branch : 1.0.x
2009-06-23 17:10:52 +02:00
holger krekel
53dc595113
b3, fix (likelY) windows-path-comparison related issue at plugin registration
...
link to PyPI
--HG--
branch : trunk
2009-06-19 13:05:44 +02:00
holger krekel
6de02a7976
snapshot 1.0.0b2
...
--HG--
branch : trunk
2009-06-19 12:19:59 +02:00
holger krekel
82d40724fa
fixing docs, adding newest ez_setup.py, fixing a few win32 failures, fixing iocapture plugin
...
--HG--
branch : trunk
2009-06-18 19:02:59 +02:00
holger krekel
4a48a50e3b
* introduce and document new pytest_namespace hook
...
* remove py.test.mark helper
* move xfail to work directly on py.test namespace, simplified
--HG--
branch : trunk
2009-06-18 17:19:12 +02:00
holger krekel
4a78daf7f3
* refine collect hooks and docs, remove pytest_collect_recurse
...
* write and extend extension docs
--HG--
branch : trunk
2009-06-15 17:28:55 +02:00
holger krekel
771438fde5
* refine and rename pycollect related hooks
...
* refine runtest/test function call protocol
--HG--
branch : trunk
2009-06-15 15:15:40 +02:00
holger krekel
a59d602bce
* remove redundant call_next_provider method, thus generalizing Request object
...
* refine according documentation
--HG--
branch : trunk
2009-06-11 19:49:25 +02:00
holger krekel
c2415d7eee
rename api to hookspec and use direct modules instead of class
...
--HG--
branch : trunk
2009-06-11 14:48:53 +02:00
holger krekel
df437e2016
consolidate extension docs into a single file
...
--HG--
branch : trunk
2009-06-11 14:48:42 +02:00
holger krekel
ed216e77d0
document and refine/rename item **runtest** hook invocations
...
capture output separately for fixture and actual test run
--HG--
branch : trunk
2009-06-09 16:08:34 +02:00
holger krekel
d16688a1e6
* rename, cleanup and document runtest hooks
...
* factor runner code into pytest_runner plugin
* cleanup setupstate handling
--HG--
branch : trunk
2009-06-08 18:31:10 +02:00
holger krekel
5d3a3add83
introduce and document "session" scope for finalization helpers
...
--HG--
branch : trunk
2009-05-21 14:37:30 +02:00
holger krekel
dcee9bdd6e
* create funcarg Request object only once per function run setup
...
* add getfuncargvalue() for retrieving arbitrary funcargs from a provider
--HG--
branch : trunk
2009-05-21 09:45:43 +02:00
holger krekel
277b5bcdfa
updating plugin docs a bit
...
--HG--
branch : trunk
2009-05-19 09:30:11 +02:00
holger krekel
4035fa6326
get to a workable state for cached_setup() and docs, move msot related code to SetupState class
...
--HG--
branch : trunk
2009-05-18 19:06:16 +02:00
holger krekel
9854d9497c
small documentation refinements
...
--HG--
branch : trunk
2009-05-18 18:59:29 +02:00
holger krekel
19c9506fa3
addcall now takes direct funcargs values alternatively
...
--HG--
branch : trunk
2009-05-13 03:01:02 +02:00
holger krekel
65a04bc3be
simplify example code
...
--HG--
branch : trunk
2009-05-13 01:55:11 +02:00
holger krekel
763e075bab
refining examples and updating docs with actual output from examples
...
--HG--
branch : trunk
2009-05-13 01:47:32 +02:00
holger krekel
1e3acc66d6
implement funcargs according to docs, streamline docs
...
--HG--
branch : trunk
2009-05-12 23:32:19 +02:00
holger krekel
6c861c273e
updating docs wrt funcargs and deprecations - still need updated implementation
...
--HG--
branch : trunk
2009-05-12 19:05:36 +02:00
holger krekel
05b7a6cb48
add a remark about distinction of "generating" versus providing funcargs
...
--HG--
branch : trunk
2009-05-12 10:25:53 +02:00
holger krekel
ebb0de4ff7
adding _id parameter to addcall, refinements
...
--HG--
branch : trunk
2009-05-12 02:05:59 +02:00
holger krekel
c3f3dc653e
rename hook, rename addfuncarg to addcall interface,
...
forget about combinations of funcargs.
--HG--
branch : trunk
2009-05-12 01:38:09 +02:00
holger krekel
d9ad2cf761
merging the new function generators, addresses issue 2
...
- introduce a new pytest_genfuncruns hook for generating tests with multiple funcargs
- new and extended docs: doc/test/funcargs.txt
- factor all funcargs related code into py/test/funcargs.py
- remove request.maketempdir call (you can use request.config.mktemp)
--HG--
branch : trunk
2009-05-11 19:23:57 +02:00
holger krekel
9533acb9aa
due to "conftest.py" already being loaded when collecting directories
...
we cannot skip here.
--HG--
branch : trunk
2009-04-28 19:54:19 +02:00
hpk
4157de8aaf
[svn r64091] adding missing file
...
--HG--
branch : trunk
2009-04-15 12:11:39 +02:00
holger krekel
e976fb36fd
finalized docs and funcarg attributes, i think
...
--HG--
branch : trunk
2009-04-14 21:36:57 +02:00
holger krekel
5e03bdad84
bringing docs and funcargs in sync
...
--HG--
branch : trunk
2009-04-14 19:57:00 +02:00
holger krekel
04aec935bd
fix note on funcargs
...
--HG--
branch : trunk
2009-04-14 00:05:23 +02:00
holger krekel
2456c77e1e
refining docs
...
--HG--
branch : trunk
2009-04-13 20:11:14 +02:00
holger krekel
5424d3ed28
fixing ReST typo
...
--HG--
branch : trunk
2009-04-13 19:56:11 +02:00
holger krekel
ee78661775
refining docs further
...
--HG--
branch : trunk
2009-04-13 19:51:42 +02:00
holger krekel
1dc9ac62ca
refinements
...
--HG--
branch : trunk
2009-04-13 19:36:58 +02:00
holger krekel
46ee6beaa9
streamline
...
--HG--
branch : trunk
2009-04-13 16:37:22 +02:00
holger krekel
2a72f75d58
refining formulations
...
--HG--
branch : trunk
2009-04-13 16:35:23 +02:00
holger krekel
4a33940d82
section on xUnit style setups, better linking, some streamlining
...
--HG--
branch : trunk
2009-04-13 16:29:06 +02:00
holger krekel
e9b8e4141a
update docs
...
--HG--
branch : trunk
2009-04-13 15:00:00 +02:00
hpk
236f84d6d4
[svn r64029] * move test docs into their own subdir
...
* don't use sphinx for now, put the support code to attic
* remove some old docs
--HG--
branch : trunk
2009-04-13 15:58:26 +02:00
hpk
0324f84a78
[svn r64028] use pygments for syntax-coloring python code and console
...
--HG--
branch : trunk
2009-04-13 14:54:58 +02:00
hpk
58c4366fb9
[svn r64027] make parser.getgroup create a group if it doesn't exist
...
--HG--
branch : trunk
2009-04-13 14:54:32 +02:00
holger krekel
dfc6ac3b5a
use pygments for sourcecode highlightning
...
--HG--
branch : trunk
2009-04-13 14:36:16 +02:00
holger krekel
4f82b90f44
whitespace changes
...
--HG--
branch : trunk
2009-04-12 22:53:13 +02:00
hpk
9f30ca6688
[svn r63990] * adding XXXed funcargs docs, moving release announcements to own subdir
...
--HG--
branch : trunk
2009-04-12 10:08:02 +02:00
holger krekel
7cc9419ab0
removing old file
...
--HG--
branch : trunk
2009-04-12 09:29:23 +02:00
hpk
3ab894cadc
[svn r63553] * allow doc to be tested distributedly
...
* be more eager to cleanup execnet gateway after tests
--HG--
branch : trunk
2009-04-02 21:47:01 +02:00
hpk
60596f880c
[svn r63552] adding processing of pytest_restdoc plugin back for now.
...
--HG--
branch : trunk
2009-04-02 21:22:20 +02:00
hpk
ab6f3f8c96
[svn r63551] keep style.css around here
...
--HG--
branch : trunk
2009-04-02 21:21:06 +02:00
briandorsey
6104fa0142
[svn r63549] Attempted to create a theme based on the previous pylib pages.
...
This initial version looks worse than either the old pages or the default sphinx output.
Can revert back to the default theme by referting the change to conf.py
Also added a new make target to force all html to be rebuilt. Sphinx doesn't detect changes to stylesheets in themes.
--HG--
branch : trunk
2009-04-02 21:00:08 +02:00
hpk
ca2c19731a
[svn r63548] fixing lots of little issues with the docs
...
--HG--
branch : trunk
2009-04-02 20:59:31 +02:00
briandorsey
139b43dd88
[svn r63545] fixes to toctree
...
updated headings so the outline works
--HG--
branch : trunk
2009-04-02 19:07:18 +02:00
hpk
a72ab92ed6
[svn r63539] moving py/doc to doc/ and removing some more files
...
--HG--
branch : trunk
2009-04-02 15:24:02 +02:00