hpk
0dc97ccd5e
[svn r61965] correct help string
...
--HG--
branch : trunk
2009-02-17 12:33:15 +01:00
hpk
186c2610cd
[svn r61961] improve documentation about "-k" keyword handling.
...
--HG--
branch : trunk
2009-02-17 09:56:29 +01:00
fijal
1dc8555ca0
[svn r61296] a failing test
...
--HG--
branch : trunk
2009-01-24 09:44:03 +01:00
pedronis
6ec13a2b9c
[svn r60142] - experimental support to let decorators used on tests specify a saner order by attaching the original function (we have been
...
using something like this for quite a while at OE)
- make the explicit names test more paranoid
--HG--
branch : trunk
2008-11-25 20:15:01 +01:00
pedronis
1a150e9050
[svn r60141] refactor things such that all fallbacks to inspect.get/findsource happen in helpers in source.py
...
--HG--
branch : trunk
2008-11-25 19:34:47 +01:00
pedronis
d491d68d51
[svn r60137] support for explicitly named generative tests with tests and doc addition.
...
--HG--
branch : trunk
2008-11-25 17:10:16 +01:00
pedronis
c52d8bcdde
[svn r59615] given the format and the fact that external timeout logic may kill a py.test emitting a resultlog switching to line buffering
...
seems a good idea
--HG--
branch : trunk
2008-11-01 11:01:44 +01:00
arigo
5425dba4e5
[svn r59268] An improvement to pdb (which I should also propose as a CPython patch):
...
in post_portem, the "up" command isn't normally able to walk up past
generator frames. This fixes it.
--HG--
branch : trunk
2008-10-20 15:45:10 +02:00
hpk
c338420976
[svn r58699] show traceback before jumping into pdb
...
--HG--
branch : trunk
2008-10-07 11:26:56 +02:00
hpk
5b21c540b6
[svn r58384] adding a test for unimplemented recording feature
...
--HG--
branch : trunk
2008-09-23 16:25:16 +02:00
hpk
e63da23050
[svn r58319] be more grateful on tests that disappear during a looponfailing session.
...
--HG--
branch : trunk
2008-09-22 15:15:47 +02:00
pedronis
8b3fe55158
[svn r58316] (iko, pedronis)
...
move the FileLogSession into the py.lib proper, activated with the option --resultlog (suggestions
for a better name are welcome)
- added its tests
- plus a functional/integration test in test_config in the style of the one for eventlog
--HG--
branch : trunk
2008-09-22 14:34:54 +02:00
hpk
ef5709d30b
[svn r58311] remove dead code.
...
--HG--
branch : trunk
2008-09-21 19:51:44 +02:00
hpk
cc10d84088
[svn r58308] * de-generalize conditional skips and only care
...
nicely for common tedious causes of skipping:
import a module and checking it has a certain
version. usage example:
docutils = py.test.importorskip(docutils, minversion="0.4")
* used new helper and cleanup skipping logic in py lib
--HG--
branch : trunk
2008-09-21 17:15:28 +02:00
hpk
fa5c975c00
[svn r58300] adding option to specify namespace for ifraises execution.
...
--HG--
branch : trunk
2008-09-21 15:43:01 +02:00
hpk
e77fab82ee
[svn r58297] add a new way of conditionally skipping a test:
...
py.test.skip(ifraises="...")
see more info in the added doc.
also remove a redundant raises test and
cleanup raises code a bit.
--HG--
branch : trunk
2008-09-21 14:50:56 +02:00
hpk
cf007ce7c5
[svn r58224] remove redundant py import, thanks getxsick
...
--HG--
branch : trunk
2008-09-18 17:41:19 +02:00
arigo
7afc30d130
[svn r58095] (pedronis, arigo)
...
KeyboardInterrupt handling:
* in --verbose mode, print a detailed traceback at the end of
the report.
* in non-verbose mode, only print the file name and line number
where the KeyboardInterrupt occurred. That's the minimal
amount of information that is of any help at all to locate
an infinite loop somewhere.
--HG--
branch : trunk
2008-09-12 22:35:18 +02:00
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