Commit Graph

265 Commits

Author SHA1 Message Date
arigo f12b795147 [svn r58094] (pedronis, arigo)
Partial revert: don't print traceback failures after
InternalExceptions.

--HG--
branch : trunk
2008-09-12 22:04:59 +02:00
arigo 2670dac0d2 [svn r58093] (pedronis, arigo)
Show tracebacks for the failures even when py.test is
interrupted by Ctrl-C.

--HG--
branch : trunk
2008-09-12 21:54:41 +02:00
arigo faec0dfa0b [svn r58092] Ensure that the path is printed before the 1st test of
a module starts running (even when -v is not specified).

--HG--
branch : trunk
2008-09-12 21:41:31 +02:00
arigo a9c4c9876c [svn r58091] Minor refactoring of a few methods. The point is to add a couple of
hooks for my conftest.  This is a bit hard to test, and I don't even
know if it's worth a comment, as I'm ready to fix my conftest when
needed.

--HG--
branch : trunk
2008-09-12 21:31:31 +02:00
arigo 2742204d67 [svn r58090] Add a hack with a comment that explains why I think it is a hack.
I fear I don't care enough about --tb=short to do the "proper" fix
as documented in the comment.

--HG--
branch : trunk
2008-09-12 21:16:34 +02:00
hpk 37eea51f59 [svn r58034] introduce APIWARN helper
allow for subscriptions to produced warnings
use it from some places

--HG--
branch : trunk
2008-09-10 11:47:37 +02:00
hpk 3febdb049d [svn r58028] reverting 58009 - webcheck is actually used although not directly tested.
--HG--
branch : trunk
2008-09-09 23:53:38 +02:00
hpk 0d955758ba [svn r58027] skip specific test instead of all pexpect ones.
--HG--
branch : trunk
2008-09-09 23:40:21 +02:00
hpk af33fb16f7 [svn r58026] avoiding an issue with older pexpect versions
--HG--
branch : trunk
2008-09-09 23:36:30 +02:00
hpk 7dfc85b046 [svn r58020] streamline pdb pexpect test
--HG--
branch : trunk
2008-09-09 20:18:22 +02:00
hpk 2bac2ed175 [svn r58013] bah, forgot that helper uses fnmatch-style matching, not regular expression
--HG--
branch : trunk
2008-09-09 19:15:37 +02:00
hpk 05f2d6441d [svn r58012] fix imports so that tests pass against pypy-dist
--HG--
branch : trunk
2008-09-09 19:02:28 +02:00
hpk 0c1fe61f44 [svn r58009] move old webcheck things into contrib
--HG--
branch : trunk
2008-09-09 18:51:07 +02:00
pedronis 7a21f7157e [svn r57971] (iko, pedronis)
make the Directory collection return files sorted by name again, as it seemed expected by the tests

--HG--
branch : trunk
2008-09-08 15:02:35 +02:00
hpk e29a48b575 [svn r57834] try to accomodate the fact that some conftests like the Prolog-test ones
subclass Module but do not actually have an underlying python file.
Nowadays, they should subclass "py.test.collect.File".

--HG--
branch : trunk
2008-09-05 12:07:36 +02:00
arigo b52c58159f [svn r57790] Reintroduce the --tb option. Add test.
--HG--
branch : trunk
2008-09-03 10:15:44 +02:00
hpk d83db97806 [svn r57772] tweak
--HG--
branch : trunk
2008-09-02 21:38:46 +02:00
hpk 9eb1d55380 [svn r57762] * settle on using suptest for supporting test runs
* fix a bug in getmodpath
* remove redundant functions/files

--HG--
branch : trunk
2008-09-02 16:31:42 +02:00
hpk 7518dcabc2 [svn r57758] unify test support, remove basetest.py
--HG--
branch : trunk
2008-09-02 15:22:10 +02:00
hpk 561a14054c [svn r57754] * introduce py.test.collect.File (File for py or non-py files)
* introduce py.test.collect.Collector.collect_by_name and
  special case it for Directories to allow specifying
  files that would otherwise be ignored because of filters.
* fix py/doc/conftest to work with new API
* refactor py/doc/test_conftest.py to use suptest helper
* avoid old APIs in some more places.

--HG--
branch : trunk
2008-09-02 14:24:15 +02:00
hpk 494ea31042 [svn r57744] Merging collection-API refactoring branch:
* collectors now have a collect() method
* items have a runtest() method
* deprecated old run/join of collectors and
  run/execute methods of items

--HG--
branch : trunk
2008-09-02 10:58:14 +02:00
fijal 937b13c710 [svn r57609] Keep comments in the same style accross the file
--HG--
branch : trunk
2008-08-24 12:58:42 +02:00
hpk 861ff88484 [svn r57595] i've heart somewhere that running tests before checking in is a good idea (aka bah!)
--HG--
branch : trunk
2008-08-22 23:15:56 +02:00
hpk 354feff9a6 [svn r57594] * adding tracing to dsession and master/slave communication
(enable with --tracedir)
* factor slave loop into a class
* add comment to pickling

--HG--
branch : trunk
2008-08-22 23:14:43 +02:00
hpk a6f1e3d82f [svn r57591] flush true by default
--HG--
branch : trunk
2008-08-22 19:07:04 +02:00
hpk 7adfbfa166 [svn r57565] also introduce config.maketrace(name, flush=False) which
returns either a nulltracer or opens a log in the tracedir
and returns an object that you can call with args to print
into the file.

--HG--
branch : trunk
2008-08-21 19:39:34 +02:00
hpk bf42c88e48 [svn r57564] adding an option for setting a tracedirectory so that components can write log files,
depending on what they get from config.gettracedir()

--HG--
branch : trunk
2008-08-21 19:25:48 +02:00
hpk 89cdf3b8a4 [svn r57558] should have come with 57557 - extend "acceptance" test machinery.
--HG--
branch : trunk
2008-08-21 16:26:27 +02:00
hpk 29af0e2d81 [svn r57556] remove special Function __repr__
--HG--
branch : trunk
2008-08-21 15:53:19 +02:00
hpk d7f4dd3794 [svn r57548] * introduce py.process.ForkedFunc object (previously lived at
py.io and before that py.test)
* avoid deprecated py/misc/terminal_helper.py
* starting changelog for 1.0

--HG--
branch : trunk
2008-08-21 14:12:20 +02:00
hpk 39c06d2f6e [svn r57455] fixing for changed output
--HG--
branch : trunk
2008-08-19 07:58:44 +02:00
hpk a20731b111 [svn r57440] various fixes for python2.6
--HG--
branch : trunk
2008-08-18 19:33:31 +02:00
hpk abc8cf09aa [svn r57321] merging the event branch:
* moving in test, misc, code, io directories and
  py/__init__.py
* py/bin/_find.py does not print to stderr anymore
* a few fixes to conftest files in other dirs
some more fixes and adjustments pending

--HG--
branch : trunk
2008-08-16 17:26:59 +02:00
hpk 7428eadf7d [svn r57320] remove test, misc, doc, io, and code directories
that are to come from the event branch with the next commit.

--HG--
branch : trunk
2008-08-16 17:10:17 +02:00
hpk d4c3b3ce85 [svn r56285] sanitize doctesting a bit. this also fixes the problem that you could not have "import" working in doctests previously. thanks nshepperd.
--HG--
branch : trunk
2008-07-04 09:14:36 +02:00
hpk cb53ad6010 [svn r56284] removing unadvertised new names and adjusting the test
to show how you can put custom messages otherwise.

--HG--
branch : trunk
2008-07-04 08:51:51 +02:00
hpk 671f6a4660 [svn r55053] also allow using pdb in failures of the collection process
--HG--
branch : trunk
2008-05-21 11:54:33 +02:00
fijal 4fce886def [svn r54623] A test for 54622
Fix for running tests

--HG--
branch : trunk
2008-05-10 15:55:22 +02:00
fijal 6e99225320 [svn r54622] "How this could ever worked..."
--HG--
branch : trunk
2008-05-10 15:39:39 +02:00
fijal a700c261ef [svn r52707] Allow some mocking.
--HG--
branch : trunk
2008-03-18 21:57:43 +01:00
hpk f3f84fa36c [svn r51329] rename special __package__ to __pkg__ because python 2.6 needs the former
(thanks to Ralf Schmitt)

--HG--
branch : trunk
2008-02-08 09:43:05 +01:00
fijal 37d357ff4c [svn r51292] Just another except, in order to represent source when it's not there.
--HG--
branch : trunk
2008-02-05 15:35:49 +01:00
hpk 6db9a3bd2e [svn r51087] add a note that skip-reporting is broken
after the branch-merge

--HG--
branch : trunk
2008-01-27 22:33:30 +01:00
hpk f2b0bd10e6 [svn r51034] merging in fijal's reporter-merge branch into the trunk,
still needs refactoring as far as i am concernced.

--HG--
branch : trunk
2008-01-25 16:54:04 +01:00
hpk 192a890435 [svn r51033] merging of svn+ssh://codespeak.net/svn/py/branch/reporter-merge/py/test/session.py
revisions 47584 to 51032:

    ------------------------------------------------------------------------
    r51030 | hpk | 2008-01-25 14:30:54 +0100 (Fri, 25 Jan 2008) | 5 lines

    fixing test and restoring the functionality
    that session.main returns a list of failures
    (py.test --exec=python should work again)


    ------------------------------------------------------------------------
    r50984 | hpk | 2008-01-24 18:27:06 +0100 (Thu, 24 Jan 2008) | 1 line

    avoid reporting hooks on session object
    ------------------------------------------------------------------------
    r49391 | fijal | 2007-12-05 17:33:05 +0100 (Wed, 05 Dec 2007) | 2 lines

    Don't cache results.

    ------------------------------------------------------------------------
    r48698 | fijal | 2007-11-15 01:31:42 +0100 (Thu, 15 Nov 2007) | 2 lines

    Uh. 2.4 compatibility

    ------------------------------------------------------------------------
    r48318 | fijal | 2007-11-05 16:47:34 +0100 (Mon, 05 Nov 2007) | 3 lines

    Seems that --pdb don't need to imply -s and worked out of the box.
    I've got no idea how to test it though :-/

    ------------------------------------------------------------------------
    r48140 | fijal | 2007-10-28 19:43:21 +0100 (Sun, 28 Oct 2007) | 2 lines

    Reintroduce boxing

    ------------------------------------------------------------------------
    r48138 | fijal | 2007-10-28 19:22:42 +0100 (Sun, 28 Oct 2007) | 2 lines

    Share more code.

    ------------------------------------------------------------------------
    r48130 | fijal | 2007-10-28 14:58:42 +0100 (Sun, 28 Oct 2007) | 2 lines

    Add --collectonly handling, new style, logic separated

    ------------------------------------------------------------------------
    r48129 | fijal | 2007-10-28 14:41:06 +0100 (Sun, 28 Oct 2007) | 2 lines

    Refactor LocalReporter not to rely on hosts being there

    ------------------------------------------------------------------------
    r48128 | fijal | 2007-10-28 14:24:41 +0100 (Sun, 28 Oct 2007) | 2 lines

    Small regactoring for simple usage of default reporter class

    ------------------------------------------------------------------------
    r48127 | fijal | 2007-10-28 12:56:41 +0100 (Sun, 28 Oct 2007) | 2 lines

    Remove terminal session as it's no longer needed

    ------------------------------------------------------------------------
    r48126 | fijal | 2007-10-28 12:48:35 +0100 (Sun, 28 Oct 2007) | 2 lines

    Some real test for itemgen

    ------------------------------------------------------------------------
    r47678 | fijal | 2007-10-21 18:43:54 +0200 (Sun, 21 Oct 2007) | 2 lines

    Make even less things working.

    ------------------------------------------------------------------------
    r47667 | fijal | 2007-10-21 13:00:20 +0200 (Sun, 21 Oct 2007) | 4 lines

    Huge refactoring, the target is unification of session reporters and
    eventually sessions. Right now there is about 200 lines of code cut,
    but there is still some code to die and also some features missing :)

    ------------------------------------------------------------------------
    r47660 | fijal | 2007-10-21 00:02:04 +0200 (Sun, 21 Oct 2007) | 2 lines

    Create a new branch for reporter merge

    ------------------------------------------------------------------------

--HG--
branch : trunk
2008-01-25 16:51:46 +01:00
arigo c5f6b437c8 [svn r49974] Restore the following behavior: py.test exits with an exit code 1
when there are failures.

--HG--
branch : trunk
2007-12-21 10:55:40 +01:00
fijal b97ff86b0f [svn r47584] Implement very sophisticated algorith for -k TestClass.test to work
--HG--
branch : trunk
2007-10-19 15:46:10 +02:00
fijal aabae96514 [svn r47277] Argh. Fix -d -x
--HG--
branch : trunk
2007-10-08 10:19:55 +02:00
cfbolz 1e67da155a [svn r46794] embarassing typo
--HG--
branch : trunk
2007-09-21 15:29:26 +02:00
cfbolz d61ed8c014 [svn r46772] add a custom pdb.Pdb subclass that has the ability to properly list the lines
generated by py.code.Source. Very useful in PyPy debugging.

--HG--
branch : trunk
2007-09-20 17:26:09 +02:00