Commit Graph

448 Commits

Author SHA1 Message Date
holger krekel fb1b1d9aae jython-2.5.2 has a core bug preventing pytest to run :( 2011-08-19 19:25:52 +02:00
holger krekel fba2079292 bump version number, refine goodpractises wrt to importing test modules 2011-08-19 07:58:50 +02:00
holger krekel a70293fdb7 add ability to build pytest man page with "cd doc ; make man". Is to be
found in doc/_build/man/pytest.1 afterwards.

also streamline PDF generation a bit.
2011-07-14 23:13:32 +02:00
holger krekel 46b1348b79 merge heads 2011-07-12 17:21:48 +02:00
holger krekel 709da3fe84 add benjamin's post to docs, up version, open changelog 2011-07-12 10:38:02 +02:00
holger krekel dd4b252749 add experimental "+1" button 2011-07-09 13:48:55 +02:00
holger krekel 59067684cd switching back to pytest.org self-hosting for docs - there is too much issues where i needed/need to poke people :/ 2011-07-09 13:23:58 +02:00
holger krekel 50c8218501 mention pypi package name 2011-07-09 12:02:22 +02:00
holger krekel dc8225afea adding release announcement 2011-07-08 13:16:32 +02:00
holger krekel 8713f4ba60 fix issue 35 - provide download link and improved PDF version 2011-07-08 12:42:26 +02:00
holger krekel 79ac8c6681 reshuffle start page as per gutworth feedback 2011-07-06 22:05:48 +02:00
holger krekel 418cd482b1 fix a doc link 2011-07-06 21:47:33 +02:00
holger krekel df85ddf0d2 don't import py 2011-07-06 20:25:54 +02:00
holger krekel e7c8fc7db9 rearrange and streamline documentation navigation to better work
with readthedocs and also with PDF generation.
2011-07-06 20:21:59 +02:00
holger krekel 46950ef19a rename and simplify the assert option:
cmdline usage is now: --assert=rewrite/reinterp/plain
there is no conflict detection (don't think that's neccessary)
2011-07-05 17:29:53 +02:00
Benjamin Peterson 4fcd346838 update assert docs 2011-06-29 10:52:39 -05:00
holger krekel f4eb15632d refine and streamline Floris example for an assert_reprcompare hook. 2011-06-20 18:12:48 +02:00
Floris Bruynooghe d027f9d546 Add pytest_assertrepr_compare() docs 2011-06-20 14:18:12 +02:00
holger krekel 8de50347fb some fixes and clarifications to assert docs 2011-06-18 22:30:46 +02:00
Benjamin Peterson 4b4a2c8162 merge heads 2011-06-18 15:09:50 -05:00
Benjamin Peterson 29d58ffdf2 note condition for introspection happening 2011-06-18 15:07:36 -05:00
holger krekel 9ea58242d4 fix getting-started which claimed you need to avoid side effect in asserts 2011-06-15 07:50:34 +02:00
Benjamin Peterson 8f6477f695 fix spacing 2011-06-12 16:39:38 -05:00
holger krekel ce1b456762 back out pytest_configure_funcargs hook for now 2011-06-01 15:08:54 +02:00
holger krekel 5690beab5a merge Benjamin's assertion-rewrite branch: all assertion related code is now part of py.test core distribution - the builtin assertion plugin to be precise.
See doc/assert.txt for details on how what has been improved.
2011-05-31 14:11:53 +02:00
Benjamin Peterson 00dee742b0 describe how assert rewriting interacts with cross test imports 2011-05-28 19:00:47 -05:00
holger krekel 4b7293428b add Mozilla QA people to pytest users 2011-05-29 00:47:32 +02:00
Benjamin Peterson 6fdcecb864 typo 2011-05-28 16:04:36 -05:00
Benjamin Peterson f63ff5267c s/debugging/introspection/ 2011-05-28 16:01:02 -05:00
Benjamin Peterson e98057130d a few more sentences 2011-05-27 12:30:27 -05:00
Benjamin Peterson 606ea870f0 versionadded and versionchanged for asserts 2011-05-26 23:13:39 -05:00
Benjamin Peterson e22d3e03fe doc updates for new assertion debugging 2011-05-26 21:08:55 -05:00
Ronny Pfannschmidt b6815538c5 introduce the pytest_configure_funcargs hook for better control on funcarg instanciation/configuration 2011-05-12 23:47:05 +02:00
holger krekel ea936213bc fix link to pypy tests 2011-05-12 13:52:14 +02:00
holger krekel 07e870dc14 unbump version to retag 2011-05-11 11:54:30 +02:00
holger krekel ee53b1f591 bump version 2011-05-11 11:23:46 +02:00
holger krekel 63ccec90be regen examples to use 2.0.3 version number 2011-05-01 12:38:56 +02:00
holger krekel f8137390c2 add release announcement 2011-04-17 23:16:14 +02:00
holger krekel cf4e14baed add @classmethod although it's not strictly neccessary for basic cases. 2011-03-16 19:05:28 +01:00
holger krekel 6aaaaa8e67 fix issue link 2011-03-11 15:25:37 +01:00
holger krekel 527bc472a8 fix install location 2011-03-09 13:59:00 +01:00
holger krekel 007f0daeb9 bump to release version, regenerate docs 2011-03-09 10:58:36 +01:00
holger krekel f8e3fe8fbf mention that one might need to use the pypi.testrun.org repository 2011-03-07 11:53:14 +01:00
holger krekel 22fac92ca0 improve and clarify skipping docs 2011-03-05 13:08:43 +01:00
holger krekel fadd1a2313 incorporate typo/grammar fixes from Laura and respond to a number of issues she raised in comments.
Also fixed links and some other bits and pieces.
2011-03-03 23:40:38 +01:00
holger krekel 070c73ff2f fix issue30 (the second time)
put module globals into namespace for xfail and skipif expressions
2011-03-03 23:22:55 +01:00
holger krekel 8d62e4c71c add "issues" to layout of web page 2011-02-16 00:32:57 +01:00
Brianna Laugher f6c1e49287 Fix mistakes in monkeypatch doc example 2011-02-18 16:52:18 +11:00
holger krekel 27577170e1 doc typo fixes from Victor Garcia, thanks! 2011-02-17 14:46:40 +01:00
holger krekel 70ceb946e4 fix typo, thanks antocuni 2011-02-14 18:49:16 +01:00
holger krekel d2f9b41519 some doc fixes and improvements to parametrized test examples, thanks ccxCZ for review and suggestions. 2011-02-09 14:55:21 +01:00
holger krekel 2bd0c98801 up version, commit 2.0.1 annoucnement as sent out 2011-02-07 11:54:08 +01:00
holger krekel 98cd8edb71 regen docs with examples 2011-02-07 11:45:37 +01:00
holger krekel e7b69a2ac0 doc fixes 2011-02-07 11:39:05 +01:00
holger krekel b04f87b1a6 add release announcement 2011-02-03 15:58:22 +01:00
holger krekel 35b0b376f0 bumping version to pytest-2.0.1, regen docs and examples 2011-02-03 15:14:50 +01:00
holger krekel 2b750074f4 fix typo (thanks derdon) 2011-01-13 23:50:10 +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
Benjamin Peterson 8f5d837ef6 duplicate word 2010-12-23 14:56:38 -06:00
holger krekel 0ec5f3fd6c small improvements, add assertion improvement to CHANGELOG 2010-12-10 12:28:04 +01:00
Floris Bruynooghe 8631c1f57a Add "not in" to detailed explanations
This simply uses difflib to compare the text without the offending
string to the full text.

Also ensures the summary line uses all space available.  But the
terminal width is still hardcoded.
2010-12-10 01:03:26 +00:00
holger krekel 4086d46378 fix issue11 doc typo (thanks Eduardo) 2010-12-07 15:25:25 +01:00
holger krekel a15983cb33 rather named the new hook cmdline_preparse 2010-12-07 12:34:18 +01:00
holger krekel 7db9e98b55 introduce a pytest_cmdline_processargs hook to modify/add dynamically to command line arguments. 2010-12-07 12:14:12 +01:00
holger krekel c7531705fc refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration 2010-12-06 16:54:42 +01:00
holger krekel 752965c298 add some docs and new projects 2010-12-06 10:41:20 +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 f1fc6e5eb6 regenerating examples 2010-11-26 13:26:56 +01:00
Benjamin Peterson ca72c162c8 need double colon here 2010-11-25 20:55:32 -06: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 0efa6e5aea adding anto's projects 2010-11-25 13:00:01 +01:00
holger krekel 1df0eaa387 tons and tons of refinements and additions to docs 2010-11-25 12:11:10 +01:00
Benjamin Peterson 8a527b95f2 don't try to load conf.py 2010-11-24 21:27:10 -06:00
holger krekel 4cb2c74159 introduce new discovery mechanism
XXX experiment with using it before introducing it or wait
for feature request
2010-11-24 22:01:04 +01:00
holger krekel 03ee8b7fe0 [mq]: doc 2010-11-24 19:02:08 +01:00
holger krekel 6ebd5f2900 improve docs 2010-11-24 00:23:22 +01:00
holger krekel 0357d3afda refine initialization and collection reporting, introduce a progress bar 2010-11-22 11:59:56 +01:00
holger krekel f456e376b9 refine tmpdir handling and docs
- clear tmpdir specified with --basetemp
- remove config.mktmp and config.getbasetemp methods
2010-11-21 17:43:18 +01:00
holger krekel 158e160823 merging and refining examples, also refining skipping documentation. 2010-11-20 21:35:55 +01:00
holger krekel 093bef0a08 refine release announcement 2010-11-18 18:42:33 +01:00
holger krekel 0325441099 add some missing files 2010-11-18 15:04:50 +01:00
holger krekel 582486d531 refine docs and docstrings, fix some small bits here and there while doing that. 2010-11-18 14:56:16 +01:00
holger krekel a698465487 streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*". 2010-11-17 22:12:16 +01:00
holger krekel acd286f82f run doctests in .txt/.rst files directly specified on command line irrespective of "test*.txt" pattern. 2010-11-17 14:33:21 +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 55dff651f4 refine initilization: read config also from a "pytest.ini" file if exists
and revert earlier commandline option and group ordering change.
2010-11-07 16:10:22 +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 885c7ce281 some fixes for --pyargs situations and the docs, remove wrongly added test 2010-11-07 00:22:16 +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 fcebf4f557 some more improvements and updates to docs, add release announcements 2010-11-06 11:38:53 +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 b1e4301457 document and refine py.test.fail helper and strike superflous ExceptionFailure class
refine builtin organisation and start a new doc
2010-11-05 23:37:31 +01:00
holger krekel 49319ba729 some more refinements to docs 2010-11-05 23:37:25 +01:00
holger krekel c18cca9d54 massive documentation refinements 2010-11-02 00:53:53 +01:00
holger krekel 32ac7a7c6e rename addargs to addopts, make adding of opts configurable 2010-11-01 08:55:14 +01:00
holger krekel 5616874823 streamline some hook docs and option handling, remove cruft bits, fix doc links 2010-10-31 23:28:31 +01:00
holger krekel 8871ca5bfa introduce "-q" option which decreases verbosity and basically leads to a unittest/nosetest-style "." output
add it in an ini file like this:

    [pytest]
    addargs=-q

and you get that by default.
2010-10-31 19:51:16 +01:00
holger krekel 23f8d8bce7 allow modules/conftest files specify dotted import paths for loading plugins 2010-10-31 19:01:46 +01:00
holger krekel bc574f4d94 remove superflous collect_by_name, and improve some docs
--HG--
branch : trunk
2010-10-31 18:01:33 +01:00
holger krekel b6ec5a575d get option settings from ini-file. make getting configuration options from conftest.py only an internal feature.
--HG--
branch : trunk
2010-10-31 17:41:58 +01:00
holger krekel 1280041f0c add and document new parser.addini(name, description) method to describe
ini-values. Also document the parser object with its public methods.

--HG--
branch : trunk
2010-10-30 19:23:50 +02:00
holger krekel 2d8bcbdf55 document "setup.py test" to use genscript'ed version.
--HG--
branch : trunk
2010-10-28 09:29:56 +02:00
holger krekel c9e629c870 remove old ways to set option defaults, relying on global setup.cfg or tox.ini files now.
revamp py.test --help-config

--HG--
branch : trunk
2010-10-27 22:29:01 +02:00
holger krekel b86b1628bb introduce reading of setup.cfg / ini-style configuration files
rename internal config.Error to pytest.UsageError

--HG--
branch : trunk
2010-10-27 19:35:27 +02:00
holger krekel f7b4f70a16 make examples less nested for now
--HG--
branch : trunk
2010-10-27 17:36:27 +02:00
holger krekel 65675d5a95 link to PyYAML parser
--HG--
branch : trunk
2010-10-27 15:14:12 +02:00
holger krekel 33951d48f1 a new example for doing non-python extensions
--HG--
branch : trunk
2010-10-27 14:52:28 +02:00
holger krekel f466d35771 add example for catching exceptions, simplify install doc
--HG--
branch : trunk
2010-10-24 21:55:27 +02:00
holger krekel 76a1bf391e fix some doc bits
--HG--
branch : trunk
2010-10-22 10:09:26 +02:00
holger krekel 6411fa69bc fix example good -> bad (thanks frank)
--HG--
branch : trunk
2010-10-17 11:11:32 +02:00
holger krekel 80778eb3ae add an example for testing from an app if a test run is ongoing
--HG--
branch : trunk
2010-10-17 00:10:22 +02:00
holger krekel 170346654c turn most funcargrequest attributes into properties and document them.
--HG--
branch : trunk
2010-10-16 23:59:38 +02:00
holger krekel 8853c5bdef merge install and basic usage into getting-started.txt
add an assert1.txt

--HG--
branch : trunk
2010-10-14 01:25:09 +02:00
holger krekel 2e4391d28e major refinements to documentation and examples
--HG--
branch : trunk
2010-10-13 19:30:00 +02:00
holger krekel 9925ac883e refine and document conftest loading and handling.
--HG--
branch : trunk
2010-10-13 18:45:07 +02:00
holger krekel 17719b99a1 select tests by call-id, add and refine documentation around it
--HG--
branch : trunk
2010-10-13 12:26:14 +02:00
holger krekel 04c41cb672 shift config initialization to own "config" plugin
--HG--
branch : trunk
2010-10-12 15:34:32 +02:00
holger krekel 6631447161 merge config, pluginmanager, main into one file
--HG--
branch : trunk
2010-10-12 12:54:32 +02:00
holger krekel 251fb0ab1c various documentation related refinements
--HG--
branch : trunk
2010-10-12 10:59:04 +02:00
holger krekel a82a6bb058 regen docs, add a specific test_collectonly.py example
--HG--
branch : trunk
2010-10-11 13:38:16 +02:00
holger krekel b5b8e5f0c2 advance customization docs, enhance docstrings, add more reference object docs.
--HG--
branch : trunk
2010-10-11 12:54:28 +02:00
holger krekel 431a582132 regen and extend examples a bit with regendoc.py
--HG--
branch : trunk
2010-10-11 10:07:14 +02:00
holger krekel eee0e14334 internally switch to pytest.plugin.NAME instead of pytest.plugin.pytest_NAME
--HG--
branch : trunk
2010-10-11 01:14:40 +02:00
holger krekel ce3b260b0b start documenting hooks, improve hookspec docstrings a bit
--HG--
branch : trunk
2010-10-11 00:49:54 +02:00
holger krekel c614adcf48 move and consolidate some more plugin docs
--HG--
branch : trunk
2010-10-11 00:14:32 +02:00
holger krekel d89d0e8b26 fix format of examples so that ronny's regendoc detects it.
--HG--
branch : trunk
2010-10-10 23:54:00 +02:00
holger krekel 4ee3831ac9 start reorganizing docs, write more docs, shift plugin docs, to proper documentation,
use sphinx, remove old docs ... work in progress.

--HG--
branch : trunk
2010-10-10 23:45:45 +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
Floris Bruynooghe ec5ea5c05e Show final value first when explaining an attribute
Then show the expansion as a "where" part of the explanation.

--HG--
branch : trunk
2010-10-06 18:20:09 +01:00
holger krekel 6892dc47a3 use repr() to print extra / differing values in assertion comparison failures
and guard against failures in detail-representations

--HG--
branch : trunk
2010-10-04 18:49:30 +02:00
Floris Bruynooghe cd5676adc4 Truncate the text passed to difflib where possible
This stops difflib from printing many lines which had no change in
them anyway.  It also avoids a bug in difflib which fails or hangs
when there are many trailing lines which are all identical.

--HG--
branch : trunk
2010-09-30 23:15:41 +01:00
Floris Bruynooghe 4b2cb3acbe Merge tip from py-trunk.
--HG--
branch : trunk
2010-09-22 18:14:59 +01:00
Floris Bruynooghe 0af90e0962 Add specialised explanations to the demo
This currently breaks the test_failuers.py example as that file counts
the number of failures in the demo.  But this demo isn't fixed yet so
we'll leave it for now.

--HG--
branch : trunk
2010-09-16 01:07:53 +01:00
holger krekel bb6e9848b3 recreated plugin docs
--HG--
branch : trunk
2010-09-14 17:35:01 +02:00
holger krekel 9ca7ed647b finalize release announce and changelog
--HG--
branch : trunk
2010-09-14 16:36:34 +02:00
holger krekel 04b3b9a3da preliminary release announcement
--HG--
branch : trunk
2010-09-14 15:46:30 +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 ba1f6336af add 1.3.3 release "announcement"
--HG--
branch : trunk
2010-08-01 15:21:59 +02:00
holger krekel 677f7c0a6a remove trailing whitespace everywhere
--HG--
branch : trunk
2010-07-26 21:15:15 +02:00
holger krekel 71cb42d263 updating some feature descriptions
--HG--
branch : trunk
2010-07-08 20:13:39 +02:00
holger krekel 9d47521cf0 finalizing docs
--HG--
branch : trunk
2010-07-08 15:28:54 +02:00
holger krekel 4d4344212f fixing a doc reference, removing development dependency
--HG--
branch : trunk
2010-07-07 16:37:28 +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 f9c5b00ffa refine and extend custom error reporting particularly for collection-related errors
--HG--
branch : trunk
2010-07-04 17:06:50 +02:00
holger krekel 72de7d94fd adding a link to Floris' new post
--HG--
branch : trunk
2010-06-14 15:45:31 +02:00
holger krekel 523704f890 make py.test.raises as-VAR be an ExceptionInfo object
but only initialize it after the block is finished.

--HG--
branch : trunk
2010-06-09 14:45:41 +02:00
holger krekel 6951da7da0 merge Ronny's changes, add some documentation and changelog entries
--HG--
branch : trunk
2010-06-09 14:26:08 +02:00
holger krekel 64388832d9 introduce a new request.applymarker() function and refactor
internally to allow for dynamically adding keywords to test
items.

--HG--
branch : trunk
2010-06-08 02:34:51 +02:00