holger krekel
edc2e5ab82
Merged in msabramo/pytest/fix_norecursedirs_doc_typos (pull request #176 )
...
doc/en/customize.txt: Fix norecursedirs typo
2014-07-03 16:47:58 +02:00
Marc Abramowitz
6da9a087f8
doc/en/customize.txt: Fix norecursedirs typo
...
and update documented default to match current default.
--HG--
branch : fix_norecursedirs_doc_typos
2014-07-03 07:36:07 -07:00
holger krekel
e19462d581
fix ordering of import line of last commit
2014-07-03 13:20:51 +02:00
holger krekel
a811fabb43
avoid importing "py.test" (an old alias module for "pytest")
2014-07-03 12:58:12 +02:00
holger krekel
07e76cbef2
fix issue364: shorten and enhance tracebacks representation by default.
...
The new "--tb=auto" option (default) will only display long tracebacks
for the first and last entry. You can get the old behaviour of printing
all entries as long entries with "--tb=long". Also short entries by
default are now printed very similarly to "--tb=native" ones.
2014-06-29 13:32:53 +02:00
holger krekel
76d5c9e4f4
Merged in c_henz/pytest/explicit-ini-filename (pull request #175 )
...
Implement the "-c" command line switch that allows to explicitly specifiy the config file to load.
2014-06-29 12:08:29 +02:00
holger krekel
abcadc4202
colors as used on the live web page
2014-06-29 09:47:50 +02:00
Christian Henz
b7f6a9f3fd
Cleaner implementation of early handling of the '-c' command line switch.
...
--HG--
branch : explicit-ini-filename
2014-06-28 12:03:55 +02:00
christian@christian-linux.sarrazin.local
c8264385ea
Implement the "-c" command line switch that allows to explicitly specifiy the config file to load.
...
This feature was requested in issue #174 .
--HG--
branch : explicit-ini-filename
2014-06-27 17:42:37 +02:00
Floris Bruynooghe
ad8131be9e
Re-add accidentally removed changelog items
2014-06-24 22:46:57 +01:00
holger krekel
54c88a6cf3
fix flakes issues
2014-06-16 11:27:32 +02:00
Floris Bruynooghe
115f15600f
Add test for inter-dependent fixtures
...
Together with cc0a46a13ac4 this fixes issue 467.
2014-06-15 19:57:52 +01:00
Bruno Oliveira
65a145e2a7
Updated plugins index
2014-06-10 19:04:52 -03:00
holger krekel
5719a72eeb
Merged in zyegfryed/pytest/zyegfryed/fixed-typo-noticed-by-dcramer-httpstwitt-1401780587159 (pull request #172 )
...
Fixed typo noticed by @zeeg (https://twitter.com/zeeg/status/473676721128886272 )
2014-06-03 09:49:02 +02:00
Sébastien Fievet
4bc4495115
Fixed typo noticed by @dcramer ( https://twitter.com/zeeg/status/473676721128886272 )
...
--HG--
branch : zyegfryed/fixed-typo-noticed-by-dcramer-httpstwitt-1401780587159
2014-06-03 07:30:14 +00:00
holger krekel
c66e9f8f0f
fix typo, thanks @dcramer
2014-06-03 07:21:02 +02:00
holger krekel
52eafdc21e
also add favicon
2014-06-01 12:36:31 +02:00
holger krekel
85c0d5481b
incorporate the new pytest logo
2014-06-01 12:01:40 +02:00
Benjamin Peterson
fd9055fd11
fix test on Python 3.2
2014-05-31 14:51:05 -07:00
Benjamin Peterson
780bdda95a
assert reinterpretation: try mangling attributes that look like private class vars ( fixes #514 )
2014-05-31 14:37:02 -07:00
Bruno Oliveira
fd4b461290
Updated plugins_index and updated python 3 to 3.4
2014-05-28 23:16:49 -03:00
holger krekel
040062e40c
improve example for pytest integration with "python setup.py test"
...
which now has a generic "-a" or "--pytest-args" option where you
can pass additional options as a quoted string. Thanks Trevor Bekolay.
2014-05-19 20:32:09 +02:00
holger krekel
d853e9167a
Merged in tbekolay/pytest/tbekolay/better-setuptools-integration-in-goodpra-1400520902689 (pull request #171 )
...
Better setuptools integration in goodpractices
2014-05-19 20:30:54 +02:00
Trevor Bekolay
d50ad270f0
Better setuptools integration in goodpractices
...
--HG--
branch : tbekolay/better-setuptools-integration-in-goodpra-1400520902689
2014-05-19 17:35:28 +00:00
holger krekel
30c93701a7
fix issue516: tell in getting-started about current dependencies.
...
cleanup setup.py a bit and specify supported versions. Thanks Jurko
Gospodnetic for the PR.
2014-05-14 09:58:34 +02:00
holger krekel
b507e1754c
fix issue512 : document dependencies in getting-started doc.
2014-05-14 09:14:40 +02:00
holger krekel
748fce94fd
Merged in jurko/pytest/setup cleanup (pull request #169 )
...
setup.py cleanup/update (updated from pull request #167 )
2014-05-14 09:10:13 +02:00
holger krekel
d6281b4206
- restore compatibility to old getvalueorskip behaviour
...
- introduce a better NOTSET representation to improve docs
2014-05-14 07:36:31 +02:00
holger krekel
b61ed2cf7e
Merged in jurko/pytest/python 3.1 fix (pull request #168 )
...
use py.builtin.callable instead of raw callable in _pytest/runner.py
2014-05-13 22:41:12 +02:00
Jurko Gospodnetić
9263f30c88
use py.builtin.callable instead of raw callable in _pytest/runner.py
...
This is consistent with how callable() is called from the rest of pytest code
(see _pytest/nose.py & _pytest/python.py) plus, as a nice side-effect, it
makes pytest work correctly on Python 3.1.
--HG--
branch : python 3.1 fix
2014-05-13 21:05:53 +02:00
Jurko Gospodnetić
8f9a88ef7a
update the list of officially supported Python versions in setup.py
...
Removed Python 3.0 & 3.1 off the list and added Python 3.4.
--HG--
branch : setup cleanup
2014-05-13 19:03:17 +02:00
Jurko Gospodnetić
c64af0d9ce
stylistic setup.py code cleanup
...
--HG--
branch : setup cleanup
2014-05-13 19:02:02 +02:00
holger krekel
9181df42da
Merged in msabramo/pytest/require_argparse_for_py3_lt_32 (pull request #166 )
...
setup.py: Require argparse for PY3 < 3.2
2014-05-11 19:30:11 +02:00
holger krekel
74e1a49dd7
remove the idea that nose support should be moved to a plugin.
2014-05-10 14:00:09 +02:00
holger krekel
468b1241a5
fix issue512: show "<notset>" for arguments which might not be set
...
in monkeypatch plugin. Improves output in documentation.
2014-05-10 13:49:24 +02:00
Marc Abramowitz
24744cf5cf
setup.py: Require argparse for PY3 < 3.2
...
E.g.: python3.1; noticed py31 failure while running tox for six
--HG--
branch : require_argparse_for_py3_lt_32
2014-05-09 23:40:06 -07:00
Floris Bruynooghe
ffc969b6c2
Do not list python 2.5 as supported in the docs
2014-05-01 22:25:03 +01:00
WooParadog
0567a8ee77
Add test for skipped case with utf-8 message
2014-04-24 10:45:39 +08:00
WooParadog
580c8525f0
Use processced skipreason for generating skip Junit node
2014-04-23 15:38:40 +08:00
WooParadog
d6010aa0c9
Also replace `report.longrepr` with `bin_xml_escape`ed skipreason
2014-04-23 14:50:21 +08:00
Brianna Laugher
4e35c00ab0
issue351: Add ability to specify parametrize ids as a callable, to generate custom test ids. + tests, docs
...
--HG--
branch : issue351
2014-04-17 15:08:49 -04:00
Floris Bruynooghe
c46e2cbbc7
Cache exception raised in fixtures according to their scope
...
Without this if a session scoped fixture fails it's setup it will
be re-tried each time it is requested. Especially in case of
skip or failure exceptions this can be undesirable, but caching
makes sense for all exceptions.
2014-04-15 22:22:41 -04:00
Floris Bruynooghe
c47835f5ec
Merge pull request #158 , fixes issue 504
2014-04-15 11:43:38 -04:00
Floris Bruynooghe
412b56f7cf
Changelog for issue 475
2014-04-14 18:12:29 -04:00
Floris Bruynooghe
faba432996
Improve error message if pytest.raises is used wrongly
...
If the type is not checked then an incomprehensible error will occur
later. This enforces the type and raies the same exception/msg as
CPython does in that case.
Docstring unmodified, just re-justified for pep8 compat.
2014-04-14 18:09:10 -04:00
Andy Freeland
2ba23e8d08
issue504: verbose output displays node IDs for each test
...
Replace the verbose per-test reporting format of `file:line test_name RESULT`
with the node ID of the test, i.e. `file@line::class::method[param] RESULT`.
This patch does not update the examples in the docs; @hpk42 has a script
to regenerate those.
--HG--
branch : issue504
2014-04-14 17:42:02 -04:00
Floris Bruynooghe
d74f852fd6
Merged in rouge8/pytest/issue499 (pull request #157 )
...
fix issue499: document selecting tests by node ID
2014-04-14 14:31:07 -04:00
Andy Freeland
1728798e81
Interal link to node ID explanation
...
--HG--
branch : issue499
2014-04-14 14:24:13 -04:00
Andy Freeland
53a8d20d88
fix issue499: document selecting tests by node ID
...
--HG--
branch : issue499
2014-04-14 12:27:55 -04:00
Floris Bruynooghe
61446faa17
Update changelog with last change
2014-04-12 17:01:05 -04:00