Commit Graph

1652 Commits

Author SHA1 Message Date
holger krekel 6495007aba refine tests to cache single-script and make standalone work with distributed testing.
--HG--
branch : trunk
2009-12-30 17:40:50 +01:00
holger krekel 94bc770786 fix accidentally broken pylib's own conftest.py
--HG--
branch : trunk
2009-12-30 17:11:48 +01:00
holger krekel 77667c11d2 a first go at testing schmir's generate_standalone_pytest script and
making it work on python2.4-3.1 + jython.

--HG--
branch : trunk
2009-12-30 17:08:45 +01:00
holger krekel f5ea19858c deprecate direct definition of Directory, Module, ... in conftest.py's,
add some pytest collect related tests + some refinements.

--HG--
branch : trunk
2009-12-30 16:18:59 +01:00
holger krekel d3b20e8d24 refine deprecations, move some over to test_deprecated_api
--HG--
branch : trunk
2009-12-30 14:07:20 +01:00
holger krekel 30bbf3b042 fix aimed at passing jstests functional tests: allow to have _fillfuncargs() called even for non-pycollect-object test-items.
--HG--
branch : trunk
2009-12-30 14:05:41 +01:00
holger krekel 89f178bf4d streamline svn test setup a bit, clear caches on setup-restore, hopefully will erase random failures with test_export.
--HG--
branch : trunk
2009-12-30 13:05:08 +01:00
holger krekel 4656bc4c97 deprecate use of 'disabled'
--HG--
branch : trunk
2009-12-30 12:13:38 +01:00
holger krekel f02b84d528 update ISSUES some more, introduce duration to RunResult and a failing dist-testing termination test.
--HG--
branch : trunk
2009-12-30 11:37:46 +01:00
holger krekel a15afb5e48 skip tests using 'capfd' funcarg but not having os.dup. cleanup issues and regen plugin docs.
--HG--
branch : trunk
2009-12-30 11:16:20 +01:00
holger krekel ae63605ac0 generalize hook calling from collection nodes but stop short
of allowing general hooks in python test modules. It'd be
easily possible (a 1-line change) but considering it i refrained
from it because the collector API is a bit too low level.

pytest_generate_tests and funcarg factories have a limited
directly useful interface and are thus less confusing - those
are taking advantage of hook discovery in python test modules.

--HG--
branch : trunk
2009-12-30 10:42:01 +01:00
holger krekel 631dfe9f13 only consider matching conftest plugins for discovering hooks related to collection nodes.
--HG--
branch : trunk
2009-12-30 02:36:58 +01:00
holger krekel 9d01975c78 fix capturing to be more careful during teardown when a setup never happened (due to e.g. an error in user-provided runtest_setup code)
--HG--
branch : trunk
2009-12-30 00:11:27 +01:00
holger krekel 77b640d1b7 streamline some tests and overall reduce py.test.ensuretemp usage, note down issue about deprecation .
--HG--
branch : trunk
2009-12-29 22:26:03 +01:00
holger krekel 9be7d78fb1 some debug info aimed at helping to find out about a randomly failing test_export
test setup issue

--HG--
branch : trunk
2009-12-29 21:18:17 +01:00
holger krekel c348cec481 make looponfailing a bit more robust against relative imports and changed directories - needs more work, probably.
--HG--
branch : trunk
2009-12-29 18:41:24 +01:00
holger krekel 79af98fc29 some testing hygene: move _reparse testing functionality to actual test support code, un-xfail a now passing test, reduce direct py.test.config usage aiming for deprecation.
--HG--
branch : trunk
2009-12-29 18:02:54 +01:00
holger krekel 7780e74016 fixup funcargs docs
--HG--
branch : trunk
2009-12-29 16:57:56 +01:00
holger krekel db21cac694 cleanup py.test.* namespace, docstrings for improved pydoc and interactive usage.
use new apipkg __onfirstaccess__ feature to initialize the py.test namespace with the default plugins.  This, besides other good implications, means that you can now type:  pydoc py.test   or help(py.test)

--HG--
branch : trunk
2009-12-29 16:29:48 +01:00
holger krekel 080fd2880e simplify Config initialization
--HG--
branch : trunk
2009-12-29 14:13:12 +01:00
holger krekel 71e332c9c4 robustiy some randomly failing tests
--HG--
branch : trunk
2009-12-29 12:36:45 +01:00
holger krekel 425e4849f3 remove/reduce internal global state: py._com.registry is now fully contained and always instantiated from the py.test PluginManager class.
--HG--
branch : trunk
2009-12-29 12:36:17 +01:00
holger krekel 8737254a74 simplify pluginmanager, move plugin validation code to plugin, remove unused code
--HG--
branch : trunk
2009-12-29 10:59:01 +01:00
holger krekel 0361b73d75 remove defaultconfest.py and make PluginManager directly do early initialization of default plugins.
--HG--
branch : trunk
2009-12-29 10:26:51 +01:00
holger krekel 27bcd2dbda always import defaultconftest by python import path. strike some redundant code.
--HG--
branch : trunk
2009-12-28 17:49:46 +01:00
Ralf Schmitt cc82f1601c add script to generate standalone py.test
--HG--
branch : trunk
2009-12-27 23:03:04 +01:00
holger krekel 9239d2dd06 another fix for windows
--HG--
branch : trunk
2009-12-25 02:16:29 -08:00
holger krekel 0bfd3819c8 fix typo
--HG--
branch : trunk
2009-12-25 10:56:03 +01:00
holger krekel abb05d9384 fixing windows32 svn-testing issues
--HG--
branch : trunk
2009-12-25 01:47:43 -08:00
holger krekel 516cee2a94 windows fixes and print funcargs for keyboardinterrupt traces
--HG--
branch : trunk
2009-12-25 09:53:36 +01:00
holger krekel d28838bbb6 try to fix windows path issue
--HG--
branch : trunk
2009-12-25 00:31:51 +01:00
holger krekel 88e61467f1 fixing and cleaning up some tests
--HG--
branch : trunk
2009-12-25 00:24:58 +01:00
holger krekel 6d46efa87a introduce --ignore option to ignore paths during collection
--HG--
branch : trunk
2009-12-24 22:23:45 +01:00
holger krekel cd96e52144 temporarily adding files for playing with hudson
--HG--
branch : trunk
2009-12-24 21:47:01 +01:00
holger krekel 7864f6a4fd rather use newest execnet always
--HG--
branch : trunk
2009-12-24 20:35:18 +01:00
holger krekel 51a684f488 adding pip requirements file
--HG--
branch : trunk
2009-12-24 20:22:19 +01:00
holger krekel f254b6f7c1 fixes to various tests, related to execnet automatic ID generation and other bits.
also lowering the version as "1.1.1post1" for now.  1.1.2 is still a bit off.

--HG--
branch : trunk
2009-12-24 19:43:14 +01:00
Benjamin Peterson 98863d1d01 capitialize I
--HG--
branch : trunk
2009-12-24 09:06:23 -06:00
holger krekel 8a5c3c0c69 cleanup bin-script creation, fix docs, add FAQ entry about py.test --version
--HG--
branch : trunk
2009-12-24 12:27:15 +01:00
holger krekel 1580b2c8da create version/interpreter differentiated py.test$VER for cpython, jython, pypy-c's, prepare 1.1.2 release
--HG--
branch : trunk
2009-12-23 19:58:52 +01:00
holger krekel 4b1db63b35 add some issues
--HG--
branch : trunk
2009-12-20 22:11:36 +01:00
holger krekel ee1064b13c adding a link to the tutorial page
--HG--
branch : trunk
2009-12-20 22:10:44 +01:00
holger krekel 2ca39443a3 some doc fixes
--HG--
branch : trunk
2009-12-17 09:33:41 +01:00
holger krekel 7637a6ecda fix links, partially thanks to fijal
--HG--
branch : trunk
2009-12-11 14:19:18 +01:00
holger krekel 15ed79cb08 add note related to issue64
--HG--
branch : trunk
2009-12-08 00:06:50 +01:00
holger krekel 1f45edf121 note down dist-testing/execnet issue
--HG--
branch : trunk
2009-12-07 23:54:22 +01:00
holger krekel 213c9fa119 another issue
--HG--
branch : trunk
2009-12-07 13:27:24 +01:00
holger krekel b44e04f28d adding a warning note, see also issue64.
--HG--
branch : trunk
2009-12-07 10:23:04 +01:00
holger krekel f93c7e0cc4 update some small issues
--HG--
branch : trunk
2009-12-06 19:18:53 +01:00
holger krekel 90306e0089 skip tests properly
--HG--
branch : trunk
2009-12-06 19:18:44 +01:00