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
96a687b97c
make pytest test suite pypy ready
2010-11-27 16:40:52 +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
9bcb66d9a5
Added tag 2.0.0 for changeset e9e127acd6f0
2010-11-25 21:03:08 +01:00
holger krekel
f741d6a01e
fix trove classifier
2010-11-25 21:02:09 +01: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
f6894ce550
fix some more trial/unittest related bits, particularly allow todo/skip items,
...
now we can run a large fraction of twisted's own test suite, mostly not those
that depend on the exact Failure() semantics (e.g. frame objects not being around
after gc.collect() but py.test kills them only slightly later anyway)
2010-11-25 15:48:59 +01:00
holger krekel
1df0eaa387
tons and tons of refinements and additions to docs
2010-11-25 12:11:10 +01:00
Benjamin Peterson
8d4c9ec343
remove invalid comment
2010-11-24 21:35:36 -06:00
Benjamin Peterson
8a527b95f2
don't try to load conf.py
2010-11-24 21:27:10 -06:00
Benjamin Peterson
b28438171b
express filter as a listcomp
2010-11-24 19:18:42 -06:00
holger krekel
ab08cb2176
simplify pluginlist computation
2010-11-24 22:22:52 +01: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
539f828cdd
also accept non-pytrace pytest.fail() call in setup/teardown methods
2010-11-24 16:43:55 +01:00
holger krekel
c36b20b137
allow setup_method/teardown_method to be mixed into unittest cases, reshuffle tests a bit
2010-11-24 16:17:49 +01:00
holger krekel
10d4544267
teach trial support code to throw separate errors/failures for setup/call/teardown
2010-11-24 14:35:04 +01:00
Maciej Fijalkowski
ff27d299cc
Finish the test
2010-11-24 15:06:40 +02:00
Maciej Fijalkowski
233baecd2d
A test for trial
2010-11-24 14:54:56 +02:00
holger krekel
9be1cd8007
fix #6 : allow skip/xfail/pdb with trial by hacking the raw exception info out from trial
2010-11-24 11:48:55 +01:00
Benjamin Peterson
b40a0c18b1
python3 fixes
2010-11-23 20:32:07 -06:00
Benjamin Peterson
ac5992f9a1
some cajoling to get pytest.py to be found when it's not on path
2010-11-23 20:27:12 -06:00
Benjamin Peterson
e2068927f9
tw is unused here
2010-11-23 20:05:40 -06:00
holger krekel
840eed28be
allow setup_class in unittest test cases
2010-11-24 00:23:39 +01:00
holger krekel
6ebd5f2900
improve docs
2010-11-24 00:23:22 +01:00
holger krekel
4accc4aa68
fix the py version check
2010-11-23 19:11:21 +01:00
holger krekel
11e8e5570e
depend on py, not pylib distro
2010-11-23 17:21:34 +01:00
holger krekel
4fa7a2e8ce
fix #128 show tracebacks for all failures and errors that haven't beed PDB-debugged
2010-11-23 16:10:47 +01:00
holger krekel
695bffc83d
refine unittest support to also work with twisted trial test cases better by
...
introducing a slightly hackish way to report a failure upstream
2010-11-23 15:42:23 +01:00
holger krekel
6e6b0ab5d9
nice-fy error reporting of self-tests
2010-11-22 15:20:18 +01:00
holger krekel
2458c139e4
fix bug on windows
2010-11-22 12:42:48 +01:00
holger krekel
0357d3afda
refine initialization and collection reporting, introduce a progress bar
2010-11-22 11:59:56 +01:00
holger krekel
bc42cf8ffb
add a way to mark hooks as "tryfirst" or "trylast" to influence its position in a hook chain.
...
Use 'tryfirst' for capturing hooks so they can start capturing as early as possible,
including when conftests add output in runtest_setup hooks.
2010-11-21 23:17:59 +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
bd5a9ba392
fix: mark.* objects are now immutable as long as they are not an attribute on a function, enables usage like this::
...
xfail = pytest.mark.xfail
@xfail
def test_func1():
pass
@xfail(reason="123")
def test_func2():
pass
where previously test_func1 and test_func2 would wrongly share the same reason
because the xfail object was modified in place.
2010-11-20 20:17:38 +01:00
holger krekel
9a21a81740
add ability to use scope="class" in request.cached_setup() calls
2010-11-20 18:03:18 +01:00
holger krekel
093bef0a08
refine release announcement
2010-11-18 18:42:33 +01:00
holger krekel
eaf68c1ffd
better deal with importing conftest.py with --doctest-modules and
...
re-enable default of "--doctest-modules" even if issued at root level
2010-11-18 15:31:58 +01:00
holger krekel
5a2295ada5
fix bare "py.test" runs without a directory by not defaulting to --doctest-modules which will virtually import everything
2010-11-18 15:19:20 +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
93a436542c
bump version number
2010-11-17 18:27:07 +01:00
holger krekel
2a825169b2
fix doctest IDs, also fix tree traversal and remove dead code
2010-11-17 18:24:28 +01:00