holger krekel
88a0714dfa
* refix handling of partial setup failures
...
* shuffle / consolidate related tests
* re-gen setup.py
--HG--
branch : 1.0.x
2009-07-08 16:41:30 +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
6167ba8923
(radomir, holger) tweak doctest reporting for docstrings from python modules
...
--HG--
branch : 1.0.x
2009-07-01 14:24:19 +01:00
holger krekel
7cb096373b
fix typo
...
--HG--
branch : 1.0.x
2009-06-29 07:32:33 +01:00
holger krekel
8b7dfb29c5
re-introduce py.test.mark and move py.test.xfail to py.test.mark.xfail
...
--HG--
branch : 1.0.x
2009-06-28 13:27:34 +02: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
a137b62370
add py.test version to verbose reporting
...
correctly regen setup
--HG--
branch : 1.0.x
2009-06-24 16:57:55 +02:00
holger krekel
7602096f81
perform state setup finalization earlier
...
--HG--
branch : 1.0.x
2009-06-24 15:43:37 +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
964ecbdb19
shift deprecated_call helper into pytest_recwarn plugin
...
--HG--
branch : trunk
2009-06-18 17:26:40 +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
3f50470c6a
striking config from Node signature
...
--HG--
branch : trunk
2009-06-11 18:23:32 +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
e61e7b1e26
* fix too-many-open files issue with fd based io-capturing
...
* workaround 2.6 issue with pickling of objects from global conftest.py files
--HG--
branch : trunk
2009-06-09 17:06:31 +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
78bae2dd04
fix a bug that collectonly reporting did not show internal errors (thanks ronny)
...
--HG--
branch : trunk
2009-05-25 14:21:21 +02:00
holger krekel
e57543780f
shift tests and remove superflous files
...
--HG--
branch : trunk
2009-05-22 23:57:08 +02:00
holger krekel
a93918a480
integrate plugin hook checking directly when registering
...
remove plugintester plugin, all functionality now in testdir
--HG--
branch : trunk
2009-05-22 23:50:35 +02:00
holger krekel
db2ef3e9e8
* rename testrunstart/finish to sessionstart and pass it an argument
...
* simplify pyexecnetcleanup plugin
--HG--
branch : trunk
2009-05-22 21:53:26 +02:00
holger krekel
bcd9aed0b1
* introduce pytest_pdb: plugin handling --pdb invocation
...
* killing some unused/unneccessary hooks
--HG--
branch : trunk
2009-05-22 19:57:21 +02:00
holger krekel
b8926f59da
make setupevent tests of pytest_runner.py work
...
--HG--
branch : trunk
2009-05-22 19:56:05 +02:00
holger krekel
f2b1eb5bba
add a very basic test and include _pytest dependency. thanks pedronis.
...
--HG--
branch : trunk
2009-05-21 15:22:01 +02:00
holger krekel
ec34e9423e
rename sorter to reprec (report-recorder)
...
--HG--
branch : trunk
2009-05-21 14:33:09 +02:00
holger krekel
a58292b473
* streamline hookrecording and global py._com.comregistry patching
...
* this fixes a reporting bug where events from inner test runs would
mix with the outer test run
--HG--
branch : trunk
2009-05-21 09:45:43 +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
d1f24aa251
plugin cleanups
...
* make pytest_eventlog.py work again by adding a hack to the registry, rename
* disable resultdb hook plugin, it needs merging with resultlog
* add some docstrings, streamline bits
--HG--
branch : trunk
2009-05-20 23:12:37 +02:00
holger krekel
219e627f87
remove superflous registry.call_firstresult and NONEASFIRSTRESULT logic
...
--HG--
branch : trunk
2009-05-20 22:02:08 +02:00
holger krekel
637f35b4a6
nicer docstring for monkeypatch funcarg plugin
...
--HG--
branch : trunk
2009-05-19 20:00:24 +02:00
holger krekel
1973817f11
rename recorder functionality, unify interfaces
...
--HG--
branch : trunk
2009-05-19 19:25:21 +02:00
holger krekel
191d02aef2
* refactor plugin support to work directly with
...
modules, no classes required anymore.
* call funcarg hook if defined on class
--HG--
branch : trunk
2009-05-18 23:26:16 +02:00
holger krekel
fdd50fcfd7
streamlining pocoo plugin
...
--HG--
branch : trunk
2009-05-13 11:51:19 +02:00
holger krekel
1e3acc66d6
implement funcargs according to docs, streamline docs
...
--HG--
branch : trunk
2009-05-12 23:32:19 +02:00
Samuele Pedroni
b392b0eac1
- rename metainfo to reportinfo for clarity
...
- report hook: pytest_report_iteminfo to override the .reportinfo() as provided by items
--HG--
branch : trunk
2009-05-12 17:02:22 +02:00
Samuele Pedroni
4956e00a49
introduce a pytest_collect_metainfo hook
...
--HG--
branch : trunk
2009-05-12 14:50:25 +02:00
holger krekel
9950fdc3eb
bring back nicer headlines for failure tests
...
--HG--
branch : trunk
2009-05-12 11:05:05 +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
1cb83de0ab
don't print py lib revision always
...
--HG--
branch : trunk
2009-05-10 21:50:24 +02:00
holger krekel
c3a6fbd8d7
better docstring
...
--HG--
branch : trunk
2009-05-09 18:09:17 +02:00
holger krekel
1535d75bb8
test reporting of itemstart events some more
...
--HG--
branch : trunk
2009-05-08 18:47:33 +02:00
holger krekel
4a70a667bb
better name for hook
...
--HG--
branch : trunk
2009-05-07 23:12:17 +02:00
holger krekel
1e84a3c451
fixing a windows issues
...
--HG--
branch : trunk
2009-05-07 21:04:56 +02:00
holger krekel
8182d341a5
rename "api" into "hook" in most places.
...
--HG--
branch : trunk
2009-05-07 18:01:53 +02:00
holger krekel
1f14aacbc2
fix issue 7 (delay in test writing)
...
--HG--
branch : trunk
2009-05-07 15:46:06 +02:00
holger krekel
61885cd825
provide testdir.spawn_pytest for pexpect mediated interaction tests,
...
kill code, yay.
--HG--
branch : trunk
2009-05-06 11:47:48 +02:00
holger krekel
22622e3370
remove unused option
...
once again fix resultdb plugin
--HG--
branch : trunk
2009-05-06 08:58:05 +02:00
holger krekel
aad04ea8ae
* kill some code and indirections
...
* have metainfo() directly provide fileinfo + message
--HG--
branch : trunk
2009-05-05 23:52:25 +02:00
holger krekel
3245b0c1af
greatly refine deprecaction warnings and use new "recwarn" plugin for it.
...
--HG--
branch : trunk
2009-05-05 22:31:18 +02:00
holger krekel
671684be5c
a new plugin for asserting that warnings have been shown to a user.
...
--HG--
branch : trunk
2009-05-05 21:24:47 +02:00
holger krekel
170e48d946
fix import issue
...
--HG--
branch : trunk
2009-04-28 23:49:03 +02:00
holger krekel
91c78274f5
fix missing import skip problem
...
--HG--
branch : trunk
2009-04-28 23:17:04 +02:00
holger krekel
84f2d332ce
fix test for preparsed -p
...
--HG--
branch : trunk
2009-04-17 20:35:23 +02:00
holger krekel
2fd437e465
ref addresses 4
...
The first non-None value returned by a pytest_pyfunc_call hook
method now indicates that the function call has been performed.
--HG--
branch : trunk
2009-04-17 19:25:15 +02:00
Michael Zeidler
1da363472e
Deleted duplicate declaration of 'pytest_item_runtest_finished()'.
...
--HG--
branch : trunk
2009-04-15 13:39:50 +02:00
holger krekel
5e03bdad84
bringing docs and funcargs in sync
...
--HG--
branch : trunk
2009-04-14 19:57:00 +02:00
holger krekel
763d0d72a5
funcargs work mostly according to the documentation
...
--HG--
branch : trunk
2009-04-14 18:30: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
hpk
73529ce63d
[svn r63911] striking unneeded call_each from pluginmanager
...
--HG--
branch : trunk
2009-04-09 20:39:59 +02:00
hpk
f319a84503
[svn r63910] removing old mentionings of "bus". docstrings.
...
--HG--
branch : trunk
2009-04-09 20:07:05 +02:00
hpk
fb7ff9a8c2
[svn r63908] first step in only allowing keyword arguments to plugin calls
...
--HG--
branch : trunk
2009-04-09 18:55:11 +02:00
hpk
f8fc229917
[svn r63905] * have pytest pluginmanager do multicalls for registration
...
* more renaming
--HG--
branch : trunk
2009-04-09 17:03:58 +02:00
hpk
e75b1b9ee6
[svn r63902] bugfix
...
--HG--
branch : trunk
2009-04-09 16:43:12 +02:00
hpk
5d271b2bde
[svn r63894] grand renaming on plugin-related mostly internal objects.
...
--HG--
branch : trunk
2009-04-09 16:03:09 +02:00
hpk
69aaef64de
[svn r63890] group hooks
...
--HG--
branch : trunk
2009-04-09 02:53:45 +02:00
hpk
cd322bd528
[svn r63889] renaming/streamlining missing event usage
...
--HG--
branch : trunk
2009-04-09 02:45:46 +02:00
hpk
cd038ee708
[svn r63888] finally. the event concept is basically gone.
...
now we only have plugin hooks aka plugin calls
--HG--
branch : trunk
2009-04-09 02:36:07 +02:00
hpk
0c4fc99a6f
[svn r63887] move rest of events
...
--HG--
branch : trunk
2009-04-09 02:12:10 +02:00
hpk
2dd3ea7041
[svn r63886] another few events
...
--HG--
branch : trunk
2009-04-09 01:50:02 +02:00
hpk
68c6aaa355
[svn r63885] moving two more events
...
--HG--
branch : trunk
2009-04-09 01:41:35 +02:00
hpk
e6234fdb61
[svn r63883] * moving many more events to become ordinary plugin hook calls.
...
* bit hackish because the code for handling the old events is
also still there ...
--HG--
branch : trunk
2009-04-09 01:33:48 +02:00
hpk
66c64e6b97
[svn r63869] * moving execnet events to become api plugin calls.
...
* defining Execnet hooks in an explicit API
--HG--
branch : trunk
2009-04-08 19:50:14 +02:00
hpk
c6606d9d8f
[svn r63846] fix bug
...
--HG--
branch : trunk
2009-04-08 17:19:46 +02:00
hpk
b6b060c1d0
[svn r63845] introduce new _pytest plugin that allows to selectively record
...
plugin calls and do assertions about them.
--HG--
branch : trunk
2009-04-08 17:15:56 +02:00
hpk
0300b2109c
[svn r63822] simplifying and strictifying the internal calls to plugins using
...
the new "api" mechanism.
--HG--
branch : trunk
2009-04-08 12:06:21 +02:00
hpk
f14fc582e9
[svn r63808] * refinements/renames to new PluginAPI
...
* have pytest_runner start to use it, passes the main test
--HG--
branch : trunk
2009-04-07 22:46:50 +02:00
hpk
9aed6ddcd0
[svn r63805] first step towards having a dedicated test-run plugin, some more basics missing
...
--HG--
branch : trunk
2009-04-07 21:27:00 +02:00
hpk
10e267b7b6
[svn r63786] rename CollectionReport to CollectReport, remove XXX.
...
--HG--
branch : trunk
2009-04-07 13:51:55 +02:00
hpk
a37c32783d
[svn r63785] further renaming, streamlining the testing machinery and helpers.
...
--HG--
branch : trunk
2009-04-07 12:48:57 +02:00
hpk
5b31dfe357
[svn r63780] some renaming
...
--HG--
branch : trunk
2009-04-07 11:53:01 +02:00
hpk
c516e895fd
[svn r63685] internal renaming of variable name
...
--HG--
branch : trunk
2009-04-05 22:16:27 +02:00
hpk
b2077ed2ec
[svn r63630] some more code to prepare for substituting the
...
fixture/runtest code, using more plugins.
--HG--
branch : trunk
2009-04-04 22:19:18 +02:00
hpk
ba6eca8da4
[svn r63628] * shuffle SetupState and fixture handling into runner.py
...
* introduce a itemsetupreport and new setupitem/teardownitem methods.
* more tests
--HG--
branch : trunk
2009-04-04 21:06:20 +02:00
hpk
4aeb929b3c
[svn r63600] merge remaining content of event.py into runner.py.
...
--HG--
branch : trunk
2009-04-04 02:34:20 +02:00
hpk
7b47da2203
[svn r63598] cleanup of imports and shuffling of plugin method.
...
--HG--
branch : trunk
2009-04-04 02:23:04 +02:00
hpk
f14b0c90d9
[svn r63593] have plugin method run the test item and report about it
...
--HG--
branch : trunk
2009-04-04 00:36:29 +02:00
hpk
db60fe7f37
[svn r63588] shift running of test item to be done through a plugin method.
...
--HG--
branch : trunk
2009-04-03 23:18:41 +02:00
hpk
cca19f1183
[svn r63580] * removing usage of py.magic.patch
...
* removing obsolete greenlet.py
--HG--
branch : trunk
2009-04-03 19:45:25 +02:00
hpk
85635e1239
[svn r63575] killing yet more test "events" and redundant code
...
--HG--
branch : trunk
2009-04-03 18:26:21 +02:00
hpk
53491b1531
[svn r63571] kill another few test "events"
...
--HG--
branch : trunk
2009-04-03 17:47:16 +02:00
hpk
45e0499f10
[svn r63566] the InternalException event class bites the dust.
...
--HG--
branch : trunk
2009-04-03 16:18:47 +02:00
hpk
d1946ae978
[svn r63563] the TestrunFinish event class bites the dust.
...
--HG--
branch : trunk
2009-04-03 14:18:25 +02:00
hpk
54cc936437
[svn r63560] beginning to review/polish test events
...
* pyevent() now receives args and kwargs as simple arguments
* refactoring event handling in tests
--HG--
branch : trunk
2009-04-03 12:57:34 +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
3ffa7735d9
[svn r63550] * move hook and event API definitions to py/test/plugin/api.py
...
* make "py.test" work on "doc" directory again.
--HG--
branch : trunk
2009-04-02 21:16:57 +02:00