Commit Graph

178 Commits

Author SHA1 Message Date
holger krekel fb159b0d40 removing some py.execnet references and moving scripts to execnet repo
--HG--
branch : trunk
2009-10-27 09:19:23 +01:00
holger krekel 6c2b1c4363 refine naming, API and docs for py.test.mark mechanism - now contained in pytest_mark plugin
--HG--
branch : trunk
2009-10-22 20:57:21 +02:00
holger krekel c38bb72205 reshuffle/refine option grouping, introduce "terminal reporting options"
--HG--
branch : trunk
2009-10-17 17:43:59 +02:00
holger krekel 80f3e33e41 deprecate addgroup / allow ordering of option groups
--HG--
branch : trunk
2009-10-17 17:43:33 +02:00
holger krekel 3795b08e95 add --report cmdline option, shift refined xfailed and skipped reporting to skipping plugin
--HG--
branch : trunk
2009-10-17 17:42:40 +02:00
holger krekel d8b9b5f1c8 - make importorskip static at py.test.importorskip because it's
used for conditional plugin loading
- fix case where xfail is defined at module/class level
- fixes and improvements to docs, correct links to plugins
- use new skip facilities here and there

--HG--
branch : trunk
2009-10-15 20:10:06 +02:00
holger krekel 3ca770b420 generalize skipping
- rename pytest_xfail to pytest_skip
- dynamic "skipif" and "xfail" decorators
- move most skipping code to the plugin

also coming with this commit:
- extend mark keyword to accept positional args + docs
- fix a few documentation related issues
- leave version as "trunk" for now

--HG--
branch : trunk
2009-10-15 16:18:57 +02:00
holger krekel 1bdc0896ca introduce "-d" to py.cleanup
--HG--
branch : trunk
2009-10-12 11:24:41 +02:00
holger krekel f10bfbb7e5 resolves #59 - robustify unittest collection
--HG--
branch : trunk
2009-10-09 15:09:26 +02:00
holger krekel 5791c06bf2 rewrote the initpkg mechanism and moved py lib implementation files to
_py/...  with py/__init__.py containing pointers into them

The new apipkg is only around 70 lines of code and allows
us to get rid of the infamous "py.__." by regular non-magical
"_py." imports. It is also available as a separately installable
package, see http://bitbucket.org/hpk42/apipkg

--HG--
branch : trunk
2009-10-03 01:47:39 +02:00
holger krekel db1ff48996 * use the MIT license for the py lib
* bump version to prospective 1.1.0b1
* strike some unused code from initpkg

--HG--
branch : trunk
2009-10-03 01:11:04 +02:00
holger krekel 1f29529a24 * don't add distributed command line options when 'execnet' is not
installed, report a nice message.

* fix tests and code to work with non-existing execnet

* point execnet doc to the new package

--HG--
branch : trunk
2009-10-02 22:29:22 +02:00
holger krekel ab9f6a75ad remove py.execnet, substitute py.execnet usages with "execnet" ones.
--HG--
branch : trunk
2009-10-02 16:58:57 +02:00
holger krekel 98b2300266 fix cached_setup to deal properly for test_functions
with multiple args.  closes #50

--HG--
branch : trunk
2009-09-30 12:52:40 +02:00
holger krekel 8f69d23f18 merging jarko'S fixes, resolves issue #45, resolves issue #46
--HG--
branch : trunk
2009-09-23 19:43:43 +02:00
Benjamin Peterson d80f37f14a add changelog entry for last commit
--HG--
branch : trunk
2009-09-22 21:07:07 -05:00
holger krekel 22c1ad9f7b fix a bug with funcarg setup and remove XXX comment because "scope=module" now would work but leaving it as session for now.
--HG--
branch : trunk
2009-09-09 23:07:42 +02:00
holger krekel 6d84da39e4 some doc about the experiemntal pytest_gwmanage_newgateway hook.
and use process-scope for execnet test funcargs because
of weird setup/teardown issues when running distributedly itself.

--HG--
branch : trunk
2009-09-09 20:45:51 +02:00
holger krekel b70c7a209d * moving execnet tests to funcarg-style, some cleanup
* slight refinement to FAQ license topic

--HG--
branch : trunk
2009-09-08 10:10:36 +02:00
holger krekel f9eadc6440 relicense to LGPL, add an FAQ entry reasoning about it.
--HG--
branch : trunk
2009-09-08 09:57:19 +02:00
holger krekel 0f29b503ef monkeypatch, doc, apiwarn, deprecation fixes
--HG--
branch : trunk
2009-09-07 17:53:50 +02:00
holger krekel 3c3002ccd5 regen setup.py and docs so that "python3 setup.py build" maybe works if setuptools does
--HG--
branch : trunk
2009-09-06 17:17:37 +02:00
holger krekel c8119d89b6 move test files out of py lib proper
* separate all tests from plugins
* simplify implicit inclusion of plugins under test
* have test_initpkg perform direct checks instead of yielding tests
* fix example tests for 3k

--HG--
branch : trunk
2009-09-06 16:59:39 +02:00
holger krekel 5e95feaf90 * add print_, exec_ and _reraise helpers for 2-3 compatible code
* consolidate builtins implementation to be compatible with >=2.3

--HG--
branch : trunk
2009-08-28 16:25:29 +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 681d344eac deprecate py.magic.autopath() and finally remove py/magic directory.
--HG--
branch : trunk
2009-08-27 18:46:42 +02:00
holger krekel e391662cff merge 1.0.x branch to trunk, fix doc link
--HG--
branch : trunk
2009-08-27 12:10:42 +02:00
holger krekel f522838c77 finalizing doc bits for 1.0.2
--HG--
branch : 1.0.x
2009-08-27 11:43:46 +02:00
holger krekel 81f7891539 merging 1.0.x branch
--HG--
branch : trunk
2009-08-26 22:57:06 +02:00
holger krekel 3be875bfd2 some fixes and small doc updates, aiming to finalize 1.0.2
--HG--
branch : 1.0.x
2009-08-26 19:09:52 +02:00
holger krekel c024dc6417 * using a MANIFEST.in file instead of our own generated MANIFEST file
* port the test_install refactoring from trunk, move to bin-for-dist

--HG--
branch : 1.0.x
2009-08-26 11:09:55 +02:00
holger krekel 8ee7bef638 consolidate py/code files into code.py, simplify SafeRepr code and docs.
--HG--
branch : trunk
2009-08-25 20:24:43 +02:00
holger krekel 94aef0b771 move and rename html rest helper to rest directory - finally remove py/misc completely
--HG--
branch : trunk
2009-08-25 16:15:17 +02:00
holger krekel d43d69e3db death to "misc" directories. moved most files out of py/misc, either to a
private attic or to other places in the lib.

--HG--
branch : trunk
2009-08-25 16:14:15 +02:00
holger krekel 58a9e71e81 add delattr/delenv/delitem methods and tests, enhance terminalwriter tests
--HG--
branch : trunk
2009-08-22 12:45:58 +02:00
holger krekel 27c08ac235 consolidate py/log into fewer files, remove one old approach, sketch simplified API
--HG--
branch : trunk
2009-08-22 09:42:12 +02:00
holger krekel 2b8f489d60 moved laura's utestconvert script to a more visible place
--HG--
branch : trunk
2009-08-21 12:56:43 +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 561fdca3a2 move localpath implementation to a single file, simplify unix/posix difference and fix a bit
--HG--
branch : trunk
2009-08-20 17:37:06 +02:00
holger krekel 079a2327ec kill/replace some execnet debug code
bump version to "trunk" on trunk
add "py" to rsyncdirs

--HG--
branch : trunk
2009-08-20 16:41:44 +02:00
holger krekel ab83c4e05c adding a link to changelog, hope that mercurial versions links correctly
--HG--
branch : 1.0.x
2009-08-19 21:02:41 +02:00
holger krekel 4f50ae1336 finalize release announcement
--HG--
branch : 1.0.x
2009-08-19 18:25:11 +02:00
holger krekel d668acfd99 enable nose by default
--HG--
branch : 1.0.x
2009-08-19 17:53:08 +02:00
holger krekel 36288223b4 [mq]: 101-prep
--HG--
branch : 1.0.x
2009-08-19 17:12:02 +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 36189a7aa7 [mq]: 101doc
--HG--
branch : 1.0.x
2009-08-18 19:04:57 +02:00
holger krekel 37976be529 [mq]: flexcom
--HG--
branch : 1.0.x
2009-08-11 19:00:41 +02:00
holger krekel b552f6eb46 * add pytest_nose plugin
* have unittest functions always receive a fresh instance

--HG--
branch : 1.0.x
2009-08-10 11:27:13 +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 91597f4100 update various doc bits, fix typos
--HG--
branch : 1.0.x
2009-08-04 22:33:24 +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 1a570011fe showing relative paths by default, improving xfail output a bit, bumping version info to 1.0.0
--HG--
branch : 1.0.x
2009-08-03 16:01:32 +02:00
holger krekel 1349edd3c6 rename iocapture to capture, add/remove some missing files
--HG--
branch : 1.0.x
2009-08-03 12:16:12 +02:00
holger krekel 96c863b3c1 rename pocoo to "pastebin" plugin, write documentation, implement whole-session-pasting
--HG--
branch : 1.0.x
2009-08-03 11:56:56 +02:00
holger krekel e80714d701 fixes for python 2.4
--HG--
branch : 1.0.x
2009-07-31 15:35:22 +02:00
holger krekel 5156216871 regen manifest, improve docs generation
--HG--
branch : 1.0.x
2009-07-31 14:43:04 +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 dcf194ebb8 simplify py.test.mark API,
add more plugin docs

--HG--
branch : 1.0.x
2009-07-28 14:26:32 +02:00
holger krekel 7fabb3df69 update docs, leave out internal plugins
--HG--
branch : 1.0.x
2009-07-22 16:09:49 +02:00
holger krekel 5a4b103ab0 regen links and add oejskit place holder text
--HG--
branch : 1.0.x
2009-07-22 15:05:09 +02:00
holger krekel 87daedd719 regen MANIFEST, update changelog
--HG--
branch : 1.0.x
2009-07-22 14:58:05 +02:00
holger krekel b7789714fd regen plugin docs and links
--HG--
branch : 1.0.x
2009-07-20 18:56:02 +02:00
holger krekel 16aa1571c0 new cleaner layout, many improvements to docs
--HG--
branch : 1.0.x
2009-07-20 18:54:08 +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 60a7556ca3 resolves issue 25
fix documentation for cached_setup, thanks to anonymous for reporting.

--HG--
branch : 1.0.x
2009-07-17 14:52:11 +02:00
holger krekel 013381fae1 * add a script for generating plugin docs
* improve generation of docs
* refine plugins docs

--HG--
branch : 1.0.x
2009-07-14 21:17:13 +02:00
holger krekel 81d5e572ca merging some old changes (still struggling with mercurial a bit)
--HG--
branch : 1.0.x
2009-07-08 16:44:40 +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 cd5ffcc605 extending and fixing docs about
- test config, funcargs
- talks and tutorials

--HG--
branch : 1.0.x
2009-07-04 15:14:14 +01:00
holger krekel d056149b67 trying to get together a working 1.0.0b7
without ez_setup.py

--HG--
branch : 1.0.x
2009-06-30 11:42:57 +01:00
holger krekel bd8f68555d re-adding py.test.mark as documented (!) by adding pytest_keyword plugin
--HG--
branch : 1.0.x
2009-06-28 13:19:43 +02:00
holger krekel 937e51b4ae improve docs some further, cleaner release announcement
--HG--
branch : 1.0.x
2009-06-26 18:12:06 +02:00
holger krekel 296a660a73 doc refinements
introduce '__channelexec__' + docs

--HG--
branch : 1.0.x
2009-06-26 17:48:46 +02:00
holger krekel 250d58729d another attempt at a full tarball
--HG--
branch : 1.0.x
2009-06-24 17:47:29 +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 53dc595113 b3, fix (likelY) windows-path-comparison related issue at plugin registration
link to PyPI

--HG--
branch : trunk
2009-06-19 13:05:44 +02:00
holger krekel 6de02a7976 snapshot 1.0.0b2
--HG--
branch : trunk
2009-06-19 12:19:59 +02:00
holger krekel 82d40724fa fixing docs, adding newest ez_setup.py, fixing a few win32 failures, fixing iocapture plugin
--HG--
branch : trunk
2009-06-18 19:02:59 +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 c2415d7eee rename api to hookspec and use direct modules instead of class
--HG--
branch : trunk
2009-06-11 14:48:53 +02:00
holger krekel df437e2016 consolidate extension docs into a single file
--HG--
branch : trunk
2009-06-11 14:48:42 +02:00
holger krekel ed216e77d0 document and refine/rename item **runtest** hook invocations
capture output separately for fixture and actual test run

--HG--
branch : trunk
2009-06-09 16:08:34 +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 5d3a3add83 introduce and document "session" scope for finalization helpers
--HG--
branch : trunk
2009-05-21 14:37:30 +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 277b5bcdfa updating plugin docs a bit
--HG--
branch : trunk
2009-05-19 09:30:11 +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 9854d9497c small documentation refinements
--HG--
branch : trunk
2009-05-18 18:59:29 +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 65a04bc3be simplify example code
--HG--
branch : trunk
2009-05-13 01:55:11 +02:00
holger krekel 763e075bab refining examples and updating docs with actual output from examples
--HG--
branch : trunk
2009-05-13 01:47:32 +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 6c861c273e updating docs wrt funcargs and deprecations - still need updated implementation
--HG--
branch : trunk
2009-05-12 19:05:36 +02:00
holger krekel 05b7a6cb48 add a remark about distinction of "generating" versus providing funcargs
--HG--
branch : trunk
2009-05-12 10:25:53 +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