Commit Graph

53 Commits

Author SHA1 Message Date
holger krekel 3bdcd2f793 introduce Function._genid, also used for more correct equality implementation
--HG--
branch : trunk
2009-05-25 10:46:04 +02:00
Samuele Pedroni 3b23b98cb5 sorting should be an option collector->child interface
--HG--
branch : trunk
2009-05-19 18:28:51 +02:00
Samuele Pedroni 842d14cd33 move _getparent to Node and make it public
--HG--
branch : trunk
2009-05-19 18:13:33 +02:00
holger krekel 4035fa6326 get to a workable state for cached_setup() and docs, move msot related code to SetupState class
--HG--
branch : trunk
2009-05-18 19:06:16 +02:00
holger krekel 19c9506fa3 addcall now takes direct funcargs values alternatively
--HG--
branch : trunk
2009-05-13 03:01:02 +02:00
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 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
holger krekel 6843c64a95 avoid superflous methods
--HG--
branch : trunk
2009-05-12 11:29:14 +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 4a70a667bb better name for hook
--HG--
branch : trunk
2009-05-07 23:12:17 +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 86030ee645 fix docstring
--HG--
branch : trunk
2009-05-07 15:44:56 +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 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
holger krekel 763d0d72a5 funcargs work mostly according to the documentation
--HG--
branch : trunk
2009-04-14 18:30:26 +02:00
holger krekel de4c2dc98d implement request object as per docs
--HG--
branch : trunk
2009-04-14 02:59:50 +02:00
holger krekel 70840f605e move tests to test_funcargs.py and start with new request object tests
--HG--
branch : trunk
2009-04-14 02:23:42 +02:00
hpk 248093e61a [svn r63899] more consistent naming
--HG--
branch : trunk
2009-04-09 16:34:53 +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 92a06c3787 [svn r63868] move towards having funcarg setup be part of setup()
--HG--
branch : trunk
2009-04-08 19:42:23 +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 662e6905ef [svn r63359] change funcargs naming to use __
--HG--
branch : trunk
2009-03-26 13:50:12 +01:00
hpk 92e354a486 [svn r63339] undo rev 63000 so that there is only one method now for funcargs
--HG--
branch : trunk
2009-03-26 10:26:09 +01:00
hpk 8230a39b39 [svn r63338] rename pyfuncarg to funcarg
--HG--
branch : trunk
2009-03-26 10:16:30 +01:00
hpk ee902a2d06 [svn r63337] provide more info for the pyfuncarg failing lookup
improve docstring

--HG--
branch : trunk
2009-03-26 10:14:09 +01:00
hpk 74958be548 [svn r63300] * refining pyfuncarg setup, now there is explicit registration!
* porting monkeypatch and pytester funcargs to the new method
* fixing a kind-of-a-bug with MultiCalls

--HG--
branch : trunk
2009-03-24 23:00:07 +01:00
hpk 92b2d4786d [svn r63073] make sure that generated test names are always unique
--HG--
branch : trunk
2009-03-19 15:34:33 +01:00
hpk 5f25395cdd [svn r63051] be very careful when we cannot unpickle an
colitem because its parent can't collect
the same way as on the sending side.
(due to platform skips etc.)

--HG--
branch : trunk
2009-03-18 20:23:38 +01:00
hpk f013f0a54b [svn r63050] * disabled classes or modules will now lead to a skip during setup of the colitem
* more graceful handling when "ssh" is not present

--HG--
branch : trunk
2009-03-18 18:54:45 +01:00
hpk d626a63934 [svn r63017] rename colitem._config to colitem.config - it's an official attribute
--HG--
branch : trunk
2009-03-18 00:48:07 +01:00
hpk 65b75cead6 [svn r62611] yay, the global setupstate died. I guess what kept me from doing that
was all kinds of tests breaking.  but they are cleaned up now.
so there was no problem. nice.

--HG--
branch : trunk
2009-03-05 22:10:18 +01:00
hpk a743caef18 [svn r62487] merging hostmanage branch:
* cleanup of the way distributed/remote sessions are setup up
* simplified config pickling
* configs are now more correctly wired on receival at remote sides
* introduced py.__.execnet.gwmanage helps managing calls to multiple hosts
* grouping all pickling related tests in test_pickle.py
  and showcasing a nice pyfunc_call hack

--HG--
branch : trunk
2009-03-03 18:42:32 +01:00
hpk fbe8315f76 [svn r62430] honour unitttest function default values for pyfuncarg protocol
--HG--
branch : trunk
2009-03-02 23:43:31 +01:00
hpk d47ae0dc8d [svn r62287] By default cut traceback such that py lib code does not appear
test tracebacks.

--HG--
branch : trunk
2009-03-01 12:24:52 +01:00
hpk c17a09adaf [svn r62211] merge 60797:HEAD of pytestplugin branch:
this merge contains:

* a new plugin architecture
* a pluginized pytest core
* many pytest related refactorings
* refactorings/streamlining of pytest's own tests

--HG--
branch : trunk
2009-02-27 11:18:27 +01:00
pedronis 6ec13a2b9c [svn r60142] - experimental support to let decorators used on tests specify a saner order by attaching the original function (we have been
using something like this for quite a while at OE)
- make the explicit names test more paranoid

--HG--
branch : trunk
2008-11-25 20:15:01 +01:00
pedronis 1a150e9050 [svn r60141] refactor things such that all fallbacks to inspect.get/findsource happen in helpers in source.py
--HG--
branch : trunk
2008-11-25 19:34:47 +01:00
pedronis d491d68d51 [svn r60137] support for explicitly named generative tests with tests and doc addition.
--HG--
branch : trunk
2008-11-25 17:10:16 +01:00
hpk e29a48b575 [svn r57834] try to accomodate the fact that some conftests like the Prolog-test ones
subclass Module but do not actually have an underlying python file.
Nowadays, they should subclass "py.test.collect.File".

--HG--
branch : trunk
2008-09-05 12:07:36 +02:00
hpk 9eb1d55380 [svn r57762] * settle on using suptest for supporting test runs
* fix a bug in getmodpath
* remove redundant functions/files

--HG--
branch : trunk
2008-09-02 16:31:42 +02:00
hpk 561a14054c [svn r57754] * introduce py.test.collect.File (File for py or non-py files)
* introduce py.test.collect.Collector.collect_by_name and
  special case it for Directories to allow specifying
  files that would otherwise be ignored because of filters.
* fix py/doc/conftest to work with new API
* refactor py/doc/test_conftest.py to use suptest helper
* avoid old APIs in some more places.

--HG--
branch : trunk
2008-09-02 14:24:15 +02:00