Commit Graph

250 Commits

Author SHA1 Message Date
holger krekel 762ea71f67 fix error reporting issue when a "pyc" file has no relating "py" 2011-01-27 21:11:21 +01:00
holger krekel d8d88ede65 refine and unify initial capturing - now works also if the logging module
is already used from an early-loaded conftest.py file (prior to option parsing)
2011-01-18 12:51:21 +01:00
holger krekel 88cfaebbcb fix issue12 - show plugin versions with "--version" and "--traceconfig" and also document how to add extra information to reporting test header 2011-01-12 19:39:36 +01:00
holger krekel 647b56614a fix issue17 by requiring an update to pylib which helps to fix it 2011-01-12 17:21:11 +01:00
holger krekel 1b3fb3d229 fix issue15 - tests for python3/nose-1.0 combo work now 2011-01-11 17:27:34 +01:00
holger krekel a15983cb33 rather named the new hook cmdline_preparse 2010-12-07 12:34:18 +01:00
holger krekel 9ab256c296 make getvalueorskip() be hidden in skip-reporting. also bump version. 2010-12-07 12:18:24 +01:00
holger krekel e6541ed14e bump version and fix changelog issue reference 2010-12-06 19:01:50 +01:00
holger krekel d894bae281 bumping version to a dev version, run tests by using python PyPI by default 2010-11-26 13:37:00 +01:00
holger krekel f741d6a01e fix trove classifier 2010-11-25 21:02:09 +01:00
holger krekel b622c85bbf last changes, preparing 2.0.0 2010-11-25 20:06:42 +01:00
holger krekel 9e7ef58cfd some small pre-release updates 2010-11-25 16:36:25 +01:00
holger krekel 1df0eaa387 tons and tons of refinements and additions to docs 2010-11-25 12:11:10 +01:00
holger krekel c36b20b137 allow setup_method/teardown_method to be mixed into unittest cases, reshuffle tests a bit 2010-11-24 16:17:49 +01:00
holger krekel 9be1cd8007 fix #6 : allow skip/xfail/pdb with trial by hacking the raw exception info out from trial 2010-11-24 11:48:55 +01:00
holger krekel 840eed28be allow setup_class in unittest test cases 2010-11-24 00:23:39 +01:00
holger krekel 4accc4aa68 fix the py version check 2010-11-23 19:11:21 +01:00
holger krekel 11e8e5570e depend on py, not pylib distro 2010-11-23 17:21:34 +01:00
holger krekel 4fa7a2e8ce fix #128 show tracebacks for all failures and errors that haven't beed PDB-debugged 2010-11-23 16:10:47 +01:00
holger krekel bc42cf8ffb add a way to mark hooks as "tryfirst" or "trylast" to influence its position in a hook chain.
Use 'tryfirst' for capturing hooks so they can start capturing as early as possible,
including when conftests add output in runtest_setup hooks.
2010-11-21 23:17:59 +01:00
holger krekel 9a21a81740 add ability to use scope="class" in request.cached_setup() calls 2010-11-20 18:03:18 +01:00
holger krekel 93a436542c bump version number 2010-11-17 18:27:07 +01:00
holger krekel fb102a2ddb bump version and comment out ignore-testclass-if-unittest-module-feature 2010-11-17 12:21:24 +01:00
holger krekel 82ba645a2e fix skip reporting over distributed testing. if we have a "skip" report
rep.longrepr will now be a 3-tuple (path, lineno, message)
2010-11-13 21:03:28 +01:00
holger krekel 1bc444d5c8 some fixes to make cross linux/windows remote testing work again 2010-11-13 19:46:28 +01:00
holger krekel 929291775e flat is better than nested (cont'd):
- pytest.py is new module, making "python -m pytest" work always
- _pytest/*.py now contains core.py, hookspec and the plugins, no sub packages
2010-11-13 11:10:45 +01:00
holger krekel 2e4e9eb745 internally use pytest.* instead of ``py.test.*`` in many places.
make sub namespace names 'collect' and 'cmdline' available on pytest directly
2010-11-13 09:05:11 +01:00
holger krekel 3a53d86988 bump version 2010-11-07 16:26:44 +01:00
holger krekel 6461295ab4 probably the last major internal cleanup action: rename collection to
session which now is the root collection node.  This means that
session, collection and config objects have a more defined
relationship (previously there was no way to get from a collection
node or even from a runtest hook to the session object which
was strange).
2010-11-07 10:19:58 +01:00
holger krekel 722e20c7d6 bump version 2010-11-07 09:05:54 +01:00
holger krekel 582a2100b1 fix test, bump version 2010-11-07 07:14:50 +01:00
holger krekel 707775dcfa introduce new --testpkg importpath option, add more meat to draft release announcement 2010-11-06 22:17:33 +01:00
holger krekel 6dac77433e majorly refactor collection process
- get rid of py.test.collect.Directory alltogether.
- introduce direct node.nodeid attribute
- remove now superflous attributes on collect and test reports
2010-11-06 09:58:04 +01:00
holger krekel d108235095 implement and document new invocation mechanisms, see doc/usage.txt
also rename pytest._core to pytest.main for convenience.
2010-11-05 23:37:31 +01:00
holger krekel 7d495cc250 majorly changing the unittest compatibility code, calling TestCase(name)(result) 2010-11-01 23:08:16 +01:00
holger krekel 53d1cfc3a1 allow unregistration by name 2010-11-01 09:20:58 +01:00
holger krekel 32ac7a7c6e rename addargs to addopts, make adding of opts configurable 2010-11-01 08:55:14 +01:00
holger krekel 85c24b7fa1 some test fixes and refinements 2010-11-01 08:16:10 +01:00
holger krekel cf8dd64703 slightly simplify collection node init 2010-11-01 01:01:31 +01:00
holger krekel f1e3dde2ec bump version, add a bit to changelog 2010-10-31 19:53:11 +01:00
holger krekel c92365f8dd change status 2010-10-31 18:18:24 +01:00
holger krekel 7138df5b51 bump version
--HG--
branch : trunk
2010-10-31 18:06:11 +01:00
holger krekel 90c1084a88 add --lsof self-testing option
--HG--
branch : trunk
2010-10-26 09:11:53 +02:00
holger krekel 5fc87acf9b re-introduce compatibility attributes on collection nodes to keep compatible with code like::
def pytest_collect_file(path, parent):
        ... parent.Module(...)

--HG--
branch : trunk
2010-10-25 23:09:21 +02:00
holger krekel 4480401119 allow unittest test functions to work with the "pytestmark" mechanism
by refactoring mark/keyword handling and initialization

--HG--
branch : trunk
2010-10-25 23:08:56 +02:00
holger krekel 603ff3a64f also check for stderr, add changelog entry
--HG--
branch : trunk
2010-10-24 23:43:35 +02:00
holger krekel b4210f3ae0 fix issue93 - hide output of code in early-loaded conftest files
--HG--
branch : trunk
2010-10-24 23:26:14 +02:00
holger krekel 6cddd7e793 bump version
--HG--
branch : trunk
2010-10-23 15:42:53 +02:00
holger krekel 1999180dfd xpass tests don't cause non-zero exit codes
--HG--
branch : trunk
2010-10-22 12:00:17 +02:00
holger krekel dc5e2f5ed3 bump version, fix readme
--HG--
branch : trunk
2010-10-21 12:18:10 +02:00
holger krekel 1b7d2b07ab some fixes to packaging and urls
--HG--
branch : trunk
2010-10-15 00:54:25 +02:00
holger krekel 7a461a2f3b fix dep
--HG--
branch : trunk
2010-10-10 14:46:57 +02:00
holger krekel 652d0ca636 fix tox.ini and dependencies, various fixes all around, tests pass.
--HG--
branch : trunk
2010-10-10 13:48:49 +02:00
holger krekel 51bb0f53c5 move session.py and collect.py to a unified pytest_session.py plugin.
--HG--
branch : trunk
2010-10-10 13:48:48 +02:00
holger krekel d1aff902d5 remove pylib things and move things to new pytest namespace
--HG--
branch : trunk
2010-10-07 11:59:00 +02:00
holger krekel e2683f4538 refactor all collection related logic
- drop all pickling support (for now)
- perform collection completely ahead of test running (no iterativity)
- introduce new collection related hooks
- shift all keyword-selection code to pytest_keyword plugin
- simplify session object
- besides: fix issue88

--HG--
branch : trunk
2010-09-15 10:30:50 +02:00
holger krekel 79734420df some small doc fixes
--HG--
branch : trunk
2010-09-14 16:18:06 +02:00
holger krekel af412d993c simplify and fix installation instructions particularly for windows (fixes #111)
and bump version to 1.3.4

--HG--
branch : trunk
2010-09-14 15:43:00 +02:00
holger krekel 31c91796c6 bumping version number to 1.3.4a1
--HG--
branch : trunk
2010-08-01 20:44:11 +02:00
holger krekel 3654592959 bump version, prepare 1.3.3
--HG--
branch : trunk
2010-07-30 15:06:50 +02:00
holger krekel 677f7c0a6a remove trailing whitespace everywhere
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel ed8e24312c fix terminal dimension detection to work with stdout
--HG--
branch : trunk
2010-07-26 13:13:10 +02:00
holger krekel eddd16d9fd progressing towards 1.3.2, adding announcement, regen docs
--HG--
branch : trunk
2010-07-07 15:41:28 +02:00
holger krekel 2f50ed3e99 install plain py.test script also for jython
--HG--
branch : trunk
2010-06-28 11:59:12 +02:00
holger krekel b66b5e2715 fix issue 57 - make --looponfail work with xpassing tests
--HG--
branch : trunk
2010-05-26 18:55:50 +02:00
holger krekel 545aab85f2 py-1.3.1 release prep and version bumping
--HG--
branch : trunk
2010-05-22 17:11:30 +02:00
holger krekel 0cebee2d24 bump version to 1.3.1a1 for now
--HG--
branch : trunk
2010-05-12 10:30:34 +02:00
holger krekel ee036223ce deprecate --report option in favour of a new shorter and easier to remember -r option: this takes a string argument consisting of any combination of 'xsfX'
Those letters basically correspond to the letters you see during terminal reporting.

--HG--
branch : trunk
2010-05-05 19:50:59 +02:00
holger krekel 325cb0aa49 add python3 classifier
--HG--
branch : trunk
2010-05-05 14:24:02 +02:00
holger krekel 3efb8028fb update changelog, install info and bum version to 1.3.0
rather than 1.2.2 because of the added features

--HG--
branch : trunk
2010-05-02 15:06:20 +02:00
holger krekel ff90b1b4fb fix version numbers
--HG--
branch : trunk
2010-04-22 16:51:42 +02:00
holger krekel 85d35f7418 introduce an experimental approach for allowing dynamic addition of hooks from plugin. Plugins may register new hooks by implementing the new
pytest_registerhooks(pluginmanager)

and call

    pluginmanager.registerhooks(module)

with the referenced 'module' object containing the hooks.

The new pytest_registerhooks is called after pytest_addoption
and before pytest_configure.

--HG--
branch : trunk
2010-04-22 11:57:57 +02:00
holger krekel 222a08ec03 going for the 1.2.1 release
--HG--
branch : trunk
2010-02-08 16:39:29 +01:00
holger krekel 14feeb9ca1 fix doc links, bump to dev version
--HG--
branch : trunk
2010-01-21 19:34:42 +01:00
holger krekel 866255e1f5 pushing towards 1.2.0
--HG--
branch : trunk
2010-01-18 11:19:59 +01:00
holger krekel 9da1ba40ed move down py/impl/XYZ to py/_XYZ
--HG--
branch : trunk
2010-01-13 17:15:54 +01:00
holger krekel 40f41496d8 remove dist-testing and looponfail code from core. there remain some (pytest_runner particularly) tests that test both plain and dist modes which cannot be easily dis-entangled. food for thought.
--HG--
branch : trunk
2010-01-13 16:00:33 +01:00
holger krekel 3a23baf484 add to changelog, remove docstring
--HG--
branch : trunk
2010-01-10 22:10:45 +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 0b2d9a5520 bumping version number: 1.2.0a1
--HG--
branch : trunk
2010-01-03 11:42:26 +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
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 f4ec2d1ecd improve deprecation, start changelog
--HG--
branch : trunk
2009-11-12 13:10:30 +01:00
holger krekel a5a94c4e8f largely improve and reshuffle docs, heading strongly towards a 1.1.0
--HG--
branch : trunk
2009-11-05 03:18:55 +01:00
holger krekel b04a04cabd make py lib a self-contained directory again
- move and merge _py/ bits back to py/
- fixes all around

--HG--
branch : trunk
2009-11-04 21:34:07 +01:00
holger krekel 270ac2bc0d some release preps and cleanups
- update setup.py for release
- use distributes_setup on python3
- remove unncessary package_data
- remove execnet example

--HG--
branch : trunk
2009-10-29 12:45:12 +01:00
holger krekel cc15685015 remove pyrest and _py/rest before first 1.1. release
--HG--
branch : trunk
2009-10-29 12:25:47 +01:00
holger krekel 6e11f8cd2a * remove unused py._thread namespace, rewrite the one usage
* remove unused py/test/web directory

--HG--
branch : trunk
2009-10-03 19:57:48 +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 ab9f6a75ad remove py.execnet, substitute py.execnet usages with "execnet" ones.
--HG--
branch : trunk
2009-10-02 16:58:57 +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
Benjamin Peterson 130046d245 remove magic directories from install
--HG--
branch : trunk
2009-08-28 18:51:14 -05: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 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 f3fcb5e6d3 - strike lots of basically unused code around local path implementation.
and tweak things a bit to make py.path.local at least importable on 3k

- also strike unused somewhat related code in initpkg.py

--HG--
branch : trunk
2009-08-20 19:43:13 +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 36288223b4 [mq]: 101-prep
--HG--
branch : 1.0.x
2009-08-19 17:12:02 +02:00
holger krekel 36189a7aa7 [mq]: 101doc
--HG--
branch : 1.0.x
2009-08-18 19:04:57 +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
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 a94afc6b5e regen
--HG--
branch : 1.0.x
2009-08-04 12:02:38 +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 875ebc18ef targetting a b9
--HG--
branch : 1.0.x
2009-07-23 20:16:27 +02:00
holger krekel 64a5075545 trying to tweak setup and py version attributes to not cause merging conflicts
--HG--
branch : 1.0.x
2009-07-14 21:36:51 +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 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 e412f695dd tagging 1.0.0b5
--HG--
branch : 1.0.x
2009-06-24 18:02:41 +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 e6210806fe tag revision 1.0.0b4 for upload
--HG--
branch : 1.0.x
2009-06-24 17:23:09 +02:00
holger krekel a137b62370 add py.test version to verbose reporting
correctly regen setup

--HG--
branch : 1.0.x
2009-06-24 16:57:55 +02:00
holger krekel 49c4027df3 regen setup.py, already bump trove classifier
--HG--
branch : 1.0.x
2009-06-24 16:20:14 +02:00
holger krekel 5d0fd33b64 bumping version to "1.0.x" for now, regen setup, opening 1.0.x branch
--HG--
branch : 1.0.x
2009-06-23 12:19:55 +02:00
holger krekel a07d1a4391 remove TODO file (mostly done, superflous or in the issue tracker),
remove keyword subsitution in text files.
regen setup with hg info instead of svn.

--HG--
branch : trunk
2009-06-23 12:12:45 +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 bcb30d1c7a bah - i guess i rather keep using setuptools for 1.0 because
of the issue of installing non-setuptools mediated windows
scripts on previously installed with setuptools ones

--HG--
branch : trunk
2009-06-17 21:08:19 +02:00
holger krekel 169691ec5c regen setup.py, striking some unused headers
--HG--
branch : trunk
2009-05-21 16:16:22 +02:00
hpk 4157de8aaf [svn r64091] adding missing file
--HG--
branch : trunk
2009-04-15 12:11:39 +02:00
holger krekel 6b1b3a3494 fix funcarg usage in execnet, regen setup
--HG--
branch : trunk
2009-04-14 23:01:46 +02:00
hpk 9c6e5aa7eb [svn r64000] can't bear the setuptools problems anymore. trying to switch away from it.
--HG--
branch : trunk
2009-04-13 01:05:08 +02:00
hpk 575935a4aa [svn r63546] small updates, regen setup.py
--HG--
branch : trunk
2009-04-02 19:34:16 +02:00
hpk a72ab92ed6 [svn r63539] moving py/doc to doc/ and removing some more files
--HG--
branch : trunk
2009-04-02 15:24:02 +02:00
hpk 90616cd194 [svn r63360] bumping to first beta
--HG--
branch : trunk
2009-03-26 13:51:47 +01:00
hpk 2c0ec27d1a [svn r63355] bump version
--HG--
branch : trunk
2009-03-26 13:22:04 +01:00
hpk 9b5e15bebe [svn r63346] update docs
--HG--
branch : trunk
2009-03-26 12:15:14 +01:00
hpk c6ee2b0d52 [svn r63341] regen setup
--HG--
branch : trunk
2009-03-26 10:48:10 +01:00
hpk 1930f50bc2 [svn r63319] * fixing verbose reporting to work the "old" way for non-dist settings
* bump version number
* comment out greenlet C-Extension for now

--HG--
branch : trunk
2009-03-25 12:50:57 +01:00
hpk d203d47b4d [svn r63241] regen setup, fix gensetup script
--HG--
branch : trunk
2009-03-23 17:03:10 +01:00
hpk d1016d7800 [svn r63238] rather going for some alpha releases until i am sure that packaging works well
--HG--
branch : trunk
2009-03-23 16:30:32 +01:00
hpk 98ebf16c78 [svn r63235] bumping version to 1.0.0b1
--HG--
branch : trunk
2009-03-23 16:24:30 +01:00
hpk 1fc92407e9 [svn r63234] fix gensetup, regen setup
--HG--
branch : trunk
2009-03-23 16:17:49 +01:00
hpk 743af50fd7 [svn r63224] regen setup
--HG--
branch : trunk
2009-03-23 11:06:32 +01:00
hpk 83e65a310e [svn r63217] * remove obsolete doc
* regen setup.py
* update README.txt

--HG--
branch : trunk
2009-03-23 01:59:18 +01:00
hpk 7e2ffb61e8 [svn r63214] re-gen setup.py with up-to-date list of files.
--HG--
branch : trunk
2009-03-23 01:38:17 +01:00
hpk 074788e580 [svn r63164] rebuild setup.py
--HG--
branch : trunk
2009-03-21 03:21:45 +01:00
pedronis 5cbc7f34db [svn r62738] quick fix of setup.py
--HG--
branch : trunk
2009-03-08 22:08:01 +01:00
hpk 1bd4afee0b [svn r58690] * add to TODO, changelog
* regen setup

--HG--
branch : trunk
2008-10-06 21:50:35 +02:00
hpk 71945dc1cc [svn r58021] regen setup
--HG--
branch : trunk
2008-09-09 20:56:18 +02:00
hpk 9f81afdd97 [svn r57755] regen setup, readme for trunk.
--HG--
branch : trunk
2008-09-02 14:26:22 +02:00
hpk 0dbe04abcb [svn r57587] merging doc and tool changes from release branch
svn merge -r 57540:HEAD release/0.9.x

--HG--
branch : trunk
2008-08-22 15:41:17 +02:00
hpk 162160acaf [svn r57552] regen setup.py
--HG--
branch : trunk
2008-08-21 15:26:31 +02:00
hpk a999dc8472 [svn r57540] merge changes from release branch back
[svn merge -r 57430:HEAD ../release/0.9.x/ .]

* cmdline script organisation
* execnet windows fixes
* documentation updates
* test skips

also regen setup.py

--HG--
branch : trunk
2008-08-21 12:18:58 +02:00
hpk 620805c4d2 [svn r57468] regen setup for trunk
--HG--
branch : trunk
2008-08-19 19:34:19 +02:00
hpk 4115e975d1 [svn r57429] merging/porting the release branch changes and
cleanups to trunk.

svn merge -r 56716:HEAD ../release/0.9.x/ to trunk

--HG--
branch : trunk
2008-08-18 17:08:39 +02:00
hpk ba2dcf16bd [svn r37699] removing py._dist export (only accessed from setup.py
and py/bin/_makepyrelease.py)

--HG--
branch : trunk
2007-01-31 23:23:24 +01:00
hpk 5992a8ef21 [svn r37264] create the new development trunk
--HG--
branch : trunk
2007-01-24 15:24:01 +01:00