Commit Graph

227 Commits

Author SHA1 Message Date
holger krekel 91f90d27ee simplify broken-repr test for python2.4
--HG--
branch : trunk
2009-08-28 13:00:36 +02:00
holger krekel d1932a30ed deprecate py.compat.doctest|subprocess|textwrap|...
(and for now pass through Python stdlib provided modules).

--HG--
branch : trunk
2009-08-27 21:12:55 +02:00
holger krekel 13932b7f4b * deprecate py.magic.invoke/revoke in favour of
the new py.code.patch_builtins, py.code.unpatch_builtins

* deprecate py.magic.patch/revert

* deprecate py.magic.AssertionError in favour of py.code._AssertionError

* introduced pytest_assertion plugin.

--HG--
branch : trunk
2009-08-27 17:26:02 +02:00
holger krekel 1fcd373bd5 * introduce py.io.TextIO and py.io.StringIO to help with 3k transition and to clarify
intentions when doing "in-memory" files. Replace most usages of StringIO.

* consolidate py.io's files and tests into fewer files, make files 3k-importable

--HG--
branch : trunk
2009-08-20 20:47:39 +02:00
holger krekel 5e4fcdd14e added a pytest_helpconfig plugin which groups --version and the new "--help-config" option. rename options and configuration names. streamlines docs.
--HG--
branch : 1.0.x
2009-08-19 15:45:01 +02:00
holger krekel 30e87e887d shift install test, fix example test, add 1.0.1 release announce
--HG--
branch : 1.0.x
2009-08-18 20:02:52 +02:00
holger krekel 38180ffa5f fix --version test, set version to 1.0.x rather than 1.0.1 for now, regen setup.py/MANIFEST
--HG--
branch : 1.0.x
2009-08-17 16:46:19 +02:00
Benjamin Peterson d702f4da14 add a --version option to print the pylib version
--HG--
branch : 1.0.x
2009-08-14 09:16:40 -05:00
holger krekel 7b906ca763 [mq]: monkey
--HG--
branch : 1.0.x
2009-08-13 20:10:12 +02:00
holger krekel a01e4769cc simplify internal plugin dispatching code, rename parts of the py._com plugin helpers
--HG--
branch : 1.0.x
2009-08-09 23:51:25 +02:00
holger krekel 5c8df1d4ca turn some tests from skipped to xfail
strike dead code, small refinements to xfail exception reporting

--HG--
branch : 1.0.x
2009-08-09 23:46:27 +02:00
holger krekel d41949a6e3 Test* classes with an __init__ method are not collected anymore
--HG--
branch : 1.0.x
2009-08-06 18:15:21 +02:00
holger krekel 58c6971dc8 nicer error message for non-collectable test files / items
fixes issue #27

--HG--
branch : 1.0.x
2009-08-06 15:26:45 +02:00
holger krekel afc8e6bd91 more terse reporting of collection errors / tracebacks, bump version number aiming for 1.0.1
--HG--
branch : 1.0.x
2009-08-06 14:49:55 +02:00
holger krekel 8c8617c354 * rename "rep" to "report" in reporting hooks
* refine docs
* bump version data
* improve announcement

--HG--
branch : 1.0.x
2009-08-04 12:00:04 +02:00
holger krekel 30d77f77af shift options and tests to terminal plugin
--HG--
branch : 1.0.x
2009-08-03 15:27:26 +02:00
holger krekel 61c53602f2 introduce new "Error" outcome and group setup/teardown and collection failures into that category. Report them separately.
--HG--
branch : 1.0.x
2009-07-31 14:22:02 +02:00
holger krekel be949f4037 * reworked capturing to only capture once per runtest cycle
* added readouterr() method to py.io capturing helpers

--HG--
branch : 1.0.x
2009-07-31 14:21:02 +02:00
holger krekel 04e9197fd6 * reworked per-test output capturing into the pytest_iocapture.py plugin
* removed all capturing code from config object and pytest_default plugins

* item.repr_failure(excinfo) instead of item.repr_failure(excinfo, outerr)

* added a few logging tests

--HG--
branch : 1.0.x
2009-07-25 18:09:01 +02:00
holger krekel 6216ab2bb7 adding a test and some support code for creating
an "sdist" package, unpacking in a virtualenv and
importing and verifying the version

--HG--
branch : 1.0.x
2009-07-22 14:47:10 +02:00
holger krekel 04a98700d9 * move some test_pytest_terminal tests to become functional/acceptance tests
* refine pytest_namespace to not take a config object

--HG--
branch : 1.0.x
2009-07-17 18:07:37 +02:00
holger krekel a2837ab778 fix test
--HG--
branch : trunk
2009-07-09 13:13:31 +02:00
holger krekel 8f0a85aee1 * streamlining plugin docstrings
* better organisation of example directory, also does not break
  whole-test run anymore

--HG--
branch : 1.0.x
2009-07-08 19:18:26 +02:00
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 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 c491a708e0 add test and fix keyword recogniation, thanks Andreas Kloeckner
--HG--
branch : 1.0.x
2009-06-24 16:04:42 +02:00
holger krekel 4ab0f25b05 remove scope argument from request.addfinalizer
--HG--
branch : 1.0.x
2009-06-23 17:10:52 +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 6956d1a7e4 remove unused function
--HG--
branch : trunk
2009-06-11 14:49:49 +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 3bdcd2f793 introduce Function._genid, also used for more correct equality implementation
--HG--
branch : trunk
2009-05-25 10:46:04 +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 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 30e04b1ec6 derive Exit from KeyboardInterrupt to simplify exception catching
--HG--
branch : trunk
2009-05-22 13:01:48 +02:00
Samuele Pedroni f50b39980c addresses issue15
expose fillfuncargs as py.test.collect._fillfuncargs instead for now

--HG--
branch : trunk
2009-05-21 19:36:02 +02:00
Samuele Pedroni e79f4d298c minimal changes to expose fillfuncargs
--HG--
branch : trunk
2009-05-21 19:08:33 +02:00
holger krekel 5d3a3add83 introduce and document "session" scope for finalization helpers
--HG--
branch : trunk
2009-05-21 14:37:30 +02:00
holger krekel ec34e9423e rename sorter to reprec (report-recorder)
--HG--
branch : trunk
2009-05-21 14:33:09 +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 219e627f87 remove superflous registry.call_firstresult and NONEASFIRSTRESULT logic
--HG--
branch : trunk
2009-05-20 22:02:08 +02:00
holger krekel 1973817f11 rename recorder functionality, unify interfaces
--HG--
branch : trunk
2009-05-19 19:25:21 +02:00
Samuele Pedroni 3b23b98cb5 sorting should be an option collector->child interface
--HG--
branch : trunk
2009-05-19 18:28:51 +02:00