holger krekel
1e3acc66d6
implement funcargs according to docs, streamline docs
...
--HG--
branch : trunk
2009-05-12 23:32:19 +02:00
holger krekel
286460b94e
merge samuele's metainfo() branch
...
also fix a test after broken rename
--HG--
branch : trunk
2009-05-12 19:09:27 +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
0f049147f4
test through the now public entry point
...
--HG--
branch : trunk
2009-05-12 15:59:55 +02:00
Samuele Pedroni
4956e00a49
introduce a pytest_collect_metainfo hook
...
--HG--
branch : trunk
2009-05-12 14:50:25 +02:00
Samuele Pedroni
69214d053d
- expose py.code.getfslineno and use it in pycollect
...
- rename PyobjMixin.getfslineno to PyobjMixin._getdslineno
- place_as still in place
--HG--
branch : trunk
2009-05-12 13:39:09 +02:00
Samuele Pedroni
89c025335f
test fix, .py vs .pyc
...
--HG--
branch : trunk
2009-05-12 13:21:51 +02:00
Samuele Pedroni
1e5ece07e8
- implement a general getfslineno helper in code/source.py with tests
...
- not exposed yey
--HG--
branch : trunk
2009-05-12 12:36:43 +02:00
holger krekel
6843c64a95
avoid superflous methods
...
--HG--
branch : trunk
2009-05-12 11:29:14 +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
b40c3d5110
catch duplicate _id values
...
--HG--
branch : trunk
2009-05-12 02:16:02 +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
1cb83de0ab
don't print py lib revision always
...
--HG--
branch : trunk
2009-05-10 21:50:24 +02:00
holger krekel
541b35270f
care for threading module being set to None already during finalization
...
--HG--
branch : trunk
2009-05-10 21:36:13 +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
b7fe3ee2b3
fixes issue 6 by reverting back to issuing attributeerror
...
--HG--
branch : trunk
2009-05-07 19:07:22 +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
86030ee645
fix docstring
...
--HG--
branch : trunk
2009-05-07 15:44:56 +02:00
holger krekel
0de4a13623
provide basic metainfo because the terminal reporter needs it for printing progress.
...
--HG--
branch : trunk
2009-05-07 15:44:39 +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
a72b351139
* performing funcarg setup during setup-phase
...
* make item.runtest() be a clean function and have
the caller deal with the deprecated invocation
--HG--
branch : trunk
2009-05-06 08:38:42 +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
3b052e9f7f
extend py.cleanup to supply a list of extensions to clean
...
--HG--
branch : trunk
2009-04-28 23:00:57 +02:00
holger krekel
a5ab200b9f
fixing compat test for 2.6
...
--HG--
branch : trunk
2009-04-28 22:48:22 +02:00
holger krekel
46be553c25
better error messages as discussed here:
...
http://codespeak.net/pipermail/py-dev/2009q2/001113.html
--HG--
branch : trunk
2009-04-28 18:11:38 +02:00
holger krekel
975e681552
refine error message for inconsistently failing asserts
...
--HG--
branch : trunk
2009-04-28 12:10:56 +02:00
holger krekel
84f2d332ce
fix test for preparsed -p
...
--HG--
branch : trunk
2009-04-17 20:35:23 +02:00
holger krekel
c8de661ef6
fixes #3
...
added tests and fix for early parsing of "-p" option
--HG--
branch : trunk
2009-04-17 20:09:29 +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
holger krekel
9620583e82
remove unused import, fix failing test mode
...
--HG--
branch : trunk
2009-04-17 14:06:38 +02:00
holger krekel
f6765f4c8b
merging from py-trunk
...
--HG--
branch : trunk
2009-04-17 13:56:47 +02:00
hpk
945c72ddf3
[svn r64263] fix failing test on windows
...
--HG--
branch : trunk
2009-04-17 13:40:13 +02:00
hpk
b3e22554d7
[svn r64259] porting afa's 64232 and 64253 to trunk
...
--HG--
branch : trunk
2009-04-17 13:30:55 +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
6b1b3a3494
fix funcarg usage in execnet, regen setup
...
--HG--
branch : trunk
2009-04-14 23:01:46 +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
792dce025c
fix reporting failure
...
--HG--
branch : trunk
2009-04-14 19:24:45 +02:00
holger krekel
9c6a790992
remove print, shift code
...
--HG--
branch : trunk
2009-04-14 18:42:36 +02:00