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
9a21a81740
add ability to use scope="class" in request.cached_setup() calls
2010-11-20 18:03:18 +01:00
holger krekel
93a436542c
bump version number
2010-11-17 18:27:07 +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
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
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
3a53d86988
bump version
2010-11-07 16:26:44 +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
722e20c7d6
bump version
2010-11-07 09:05:54 +01:00
holger krekel
582a2100b1
fix test, bump version
2010-11-07 07:14:50 +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
6dac77433e
majorly refactor collection process
...
- get rid of py.test.collect.Directory alltogether.
- introduce direct node.nodeid attribute
- remove now superflous attributes on collect and test reports
2010-11-06 09:58:04 +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
7d495cc250
majorly changing the unittest compatibility code, calling TestCase(name)(result)
2010-11-01 23:08:16 +01:00
holger krekel
53d1cfc3a1
allow unregistration by name
2010-11-01 09:20:58 +01:00
holger krekel
32ac7a7c6e
rename addargs to addopts, make adding of opts configurable
2010-11-01 08:55:14 +01:00
holger krekel
85c24b7fa1
some test fixes and refinements
2010-11-01 08:16:10 +01:00
holger krekel
cf8dd64703
slightly simplify collection node init
2010-11-01 01:01:31 +01:00
holger krekel
f1e3dde2ec
bump version, add a bit to changelog
2010-10-31 19:53:11 +01:00
holger krekel
c92365f8dd
change status
2010-10-31 18:18:24 +01:00
holger krekel
7138df5b51
bump version
...
--HG--
branch : trunk
2010-10-31 18:06:11 +01:00
holger krekel
90c1084a88
add --lsof self-testing option
...
--HG--
branch : trunk
2010-10-26 09:11:53 +02:00
holger krekel
5fc87acf9b
re-introduce compatibility attributes on collection nodes to keep compatible with code like::
...
def pytest_collect_file(path, parent):
... parent.Module(...)
--HG--
branch : trunk
2010-10-25 23:09:21 +02:00
holger krekel
4480401119
allow unittest test functions to work with the "pytestmark" mechanism
...
by refactoring mark/keyword handling and initialization
--HG--
branch : trunk
2010-10-25 23:08:56 +02:00
holger krekel
603ff3a64f
also check for stderr, add changelog entry
...
--HG--
branch : trunk
2010-10-24 23:43:35 +02:00
holger krekel
b4210f3ae0
fix issue93 - hide output of code in early-loaded conftest files
...
--HG--
branch : trunk
2010-10-24 23:26:14 +02:00
holger krekel
6cddd7e793
bump version
...
--HG--
branch : trunk
2010-10-23 15:42:53 +02:00
holger krekel
1999180dfd
xpass tests don't cause non-zero exit codes
...
--HG--
branch : trunk
2010-10-22 12:00:17 +02:00
holger krekel
dc5e2f5ed3
bump version, fix readme
...
--HG--
branch : trunk
2010-10-21 12:18:10 +02:00
holger krekel
1b7d2b07ab
some fixes to packaging and urls
...
--HG--
branch : trunk
2010-10-15 00:54:25 +02:00
holger krekel
7a461a2f3b
fix dep
...
--HG--
branch : trunk
2010-10-10 14:46:57 +02:00
holger krekel
652d0ca636
fix tox.ini and dependencies, various fixes all around, tests pass.
...
--HG--
branch : trunk
2010-10-10 13:48:49 +02:00
holger krekel
51bb0f53c5
move session.py and collect.py to a unified pytest_session.py plugin.
...
--HG--
branch : trunk
2010-10-10 13:48:48 +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
holger krekel
e2683f4538
refactor all collection related logic
...
- drop all pickling support (for now)
- perform collection completely ahead of test running (no iterativity)
- introduce new collection related hooks
- shift all keyword-selection code to pytest_keyword plugin
- simplify session object
- besides: fix issue88
--HG--
branch : trunk
2010-09-15 10:30:50 +02:00
holger krekel
79734420df
some small doc fixes
...
--HG--
branch : trunk
2010-09-14 16:18:06 +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
31c91796c6
bumping version number to 1.3.4a1
...
--HG--
branch : trunk
2010-08-01 20:44:11 +02:00
holger krekel
3654592959
bump version, prepare 1.3.3
...
--HG--
branch : trunk
2010-07-30 15:06:50 +02:00
holger krekel
677f7c0a6a
remove trailing whitespace everywhere
...
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel
ed8e24312c
fix terminal dimension detection to work with stdout
...
--HG--
branch : trunk
2010-07-26 13:13:10 +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
2f50ed3e99
install plain py.test script also for jython
...
--HG--
branch : trunk
2010-06-28 11:59:12 +02:00
holger krekel
b66b5e2715
fix issue 57 - make --looponfail work with xpassing tests
...
--HG--
branch : trunk
2010-05-26 18:55:50 +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
0cebee2d24
bump version to 1.3.1a1 for now
...
--HG--
branch : trunk
2010-05-12 10:30:34 +02:00
holger krekel
ee036223ce
deprecate --report option in favour of a new shorter and easier to remember -r option: this takes a string argument consisting of any combination of 'xsfX'
...
Those letters basically correspond to the letters you see during terminal reporting.
--HG--
branch : trunk
2010-05-05 19:50:59 +02:00
holger krekel
325cb0aa49
add python3 classifier
...
--HG--
branch : trunk
2010-05-05 14:24:02 +02:00