holger krekel
a9fe84d9b9
adding a second requirements file which uses execnet-1.0.2
...
--HG--
branch : trunk
2010-01-12 16:15:07 +01:00
holger krekel
1b0d6296dd
test and fix looponfailing wrt to a bug introduced with the cmdline/session startup cleanup.
...
--HG--
branch : trunk
2010-01-12 16:08:48 +01:00
holger krekel
8d9e0712be
refine classname normalization for junit-xml
...
--HG--
branch : trunk
2010-01-12 01:35:50 +01:00
holger krekel
3296939eda
fix sessionstart/sessionfinish handling at the slave side, set "session.nodeid" to id of the slave and make sure "final" teardown failures are reported nicely. fixes issue66.
...
--HG--
branch : trunk
2010-01-11 17:09:07 +01:00
holger krekel
ba1451330e
refine rsyncing and internal dir/transferal handling: don't transfer roots in a popen- no-chdir situation and only use one py._pydir everywhere
...
--HG--
branch : trunk
2010-01-11 14:30:50 +01:00
holger krekel
352e305431
fix and test bug: dist-testing now works again without execnet/pylib installed remotely. fixes issue65.
...
--HG--
branch : trunk
2010-01-10 23:52:23 +01:00
holger krekel
99301a0dae
(experimental) allow cmdline arguments to deep-point to a test, also remove virtually redundant session.getinitialitems() calls
...
--HG--
branch : trunk
2010-01-10 21:29:36 +01:00
holger krekel
3029aa6558
fix some "import py" test issues, and prevent "genscript" script from having dist-options
...
--HG--
branch : trunk
2010-01-10 20:45:37 +01:00
holger krekel
3239bd250b
avoid dependency on directory ordering
...
--HG--
branch : trunk
2010-01-03 18:19:52 +01:00
holger krekel
9fcd108091
relax a test to pass on jython and fix install docs to include genscript standalone usage.
...
--HG--
branch : trunk
2010-01-03 14:19:31 +01:00
holger krekel
27aa14c20f
fix python3 issues, add missing plugin docs
...
--HG--
branch : trunk
2010-01-03 13:27:06 +01:00
holger krekel
1b34492108
vastly simplify and cleanup collection initialization by internally
...
introducing a RootCollector. Note that the internal node
methods _fromtrail and _totrail are shifted to the still internal
config._rootcol.fromtrail/totrail
--HG--
branch : trunk
2010-01-03 01:02:44 +01:00
holger krekel
eebeb1b257
enable doctest plugin by default, add a --doctest-glob option and some documentation, regen plugin docs.
...
--HG--
branch : trunk
2010-01-02 23:30:46 +01:00
holger krekel
56a936993c
enhance figleaf setup, enabled by default now (requires --figleaf). Generalize internal ability to show "hints" at the end of "-h".
...
--HG--
branch : trunk
2010-01-02 22:48:53 +01:00
holger krekel
1b6391d814
higher timeout to accomodate slower execution environments
...
--HG--
branch : trunk
2010-01-02 18:32:11 +01:00
holger krekel
f3e62e38aa
streamlined plugin loading: order is now setuptools, ENV, commandline
...
and setuptools entry point names are turned to canonical namees ("pytest_*")
--HG--
branch : trunk
2010-01-02 17:17:13 +01:00
holger krekel
a20e60aeae
slightly refine invocation of py.test: use the py lib that we got invoked with,
...
does away with the need to not-chdir some tests
--HG--
branch : trunk
2010-01-02 11:57:42 +01:00
holger krekel
e0dd171e45
fix standalone script generation on windows, make tests not do a chdir() so that distributed testing discovers the transferred lib
...
--HG--
branch : trunk
2010-01-01 21:54:27 +01:00
holger krekel
47df1e16b6
fix some failures introduced by the last commit, document new "pytestconfig" funcarg
...
--HG--
branch : trunk
2010-01-01 21:03:33 +01:00
holger krekel
2752168a58
introduce --confcutdir option to early-inhibit lookup of conftest files above a certain directory.
...
--HG--
branch : trunk
2009-12-31 15:10:32 +01:00
holger krekel
eb4249322e
fix xml generation for skipped collections of tests
...
--HG--
branch : trunk
2009-12-31 11:50:01 +01:00
holger krekel
587951966f
adding a logxml plugin and a --xml=path option generating a junit-xml style result log. The xml result log can be parsed nicely by hudson.
...
Initial code was based on Ross Lawley's pytest_xmlresult plugin.
--HG--
branch : trunk
2009-12-31 11:25:07 +01:00
holger krekel
fa0c7b18bf
move standalone script to become a plugin offering "--genscript",
...
adjust paths accordingly and add CHANGELOG entry.
--HG--
branch : trunk
2009-12-30 19:10:49 +01:00
holger krekel
a42d9eb9f6
fix some standalone-script running issues:
...
* standalone can run standalone tests
* exception handling is more careful with assuming valid filenames
* bits here and there
--HG--
branch : trunk
2009-12-30 18:11:00 +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
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
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
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
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
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