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
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
fb102a2ddb
bump version and comment out ignore-testclass-if-unittest-module-feature
2010-11-17 12:21:24 +01:00
holger krekel
a298cf753d
some pep8 fixes
2010-11-13 23:33:50 +01:00
holger krekel
0323c5247f
perform represenation of short paths at test execution site
2010-11-13 23:33:38 +01:00
holger krekel
82ba645a2e
fix skip reporting over distributed testing. if we have a "skip" report
...
rep.longrepr will now be a 3-tuple (path, lineno, message)
2010-11-13 21:03:28 +01:00
holger krekel
1bc444d5c8
some fixes to make cross linux/windows remote testing work again
2010-11-13 19:46:28 +01:00
holger krekel
868848a9a6
revert benjamin's change: script could be py.test.exe so we cannot
...
just return "python,script". When was the actual problem occuring?
2010-11-13 11:44:58 +01:00
holger krekel
076e03e90f
also un-nest test directory
2010-11-13 11:30:40 +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
Benjamin Peterson
323dd8a25a
run subprocess py.test scripts with the python version we're testing on
2010-11-08 17:25:02 -06:00
Benjamin Peterson
d44ff035d0
add coding for py3
2010-11-08 16:48:15 -06:00
holger krekel
5bec71edc4
adapt to simplified tox indexserver definition
2010-11-08 21:13:24 +01:00
holger krekel
51fa358d8a
adapt to new tox indexserver syntax
2010-11-08 17:36:45 +01:00
holger krekel
07b67d36c4
install dependency from pytest distribution, not prior.
2010-11-08 09:22:14 +01:00
holger krekel
3845ea821f
avoid parsing of path objects when pytest.main(path) is called.
2010-11-07 17:37:40 +01:00
holger krekel
3a53d86988
bump version
2010-11-07 16:26:44 +01:00