Bruno Oliveira
|
b64d9402ca
|
Merge pull request #5108 from blueyed/summary
terminal summary: display passes after warnings
|
2019-04-15 14:49:01 -03:00 |
Bruno Oliveira
|
24bd51bda0
|
Merge pull request #5131 from blueyed/_getfailureheadline
_getfailureheadline: get head_line property only once
|
2019-04-15 12:23:41 -03:00 |
Daniel Hahler
|
9374114370
|
terminal/reports: add/use _get_verbose_word method
|
2019-04-15 17:06:18 +02:00 |
Daniel Hahler
|
eb13530560
|
_getfailureheadline: get head_line property only once
|
2019-04-15 17:04:51 +02:00 |
Daniel Hahler
|
5530d3e15d
|
Merge pull request #5120 from blueyed/minor
A collection of minor code tweaks
|
2019-04-15 16:32:20 +02:00 |
Daniel Hahler
|
ea79eb5c3f
|
terminal summary: display passes after warnings
This displays passes (with output, `-rP`) before the short summary, and
before any other output from other plugins also.
|
2019-04-15 16:31:42 +02:00 |
Bruno Oliveira
|
c8b904a406
|
Merge pull request #5124 from blueyed/terminal-summary_failures
terminal: revisit summary_failures
|
2019-04-15 11:26:52 -03:00 |
Bruno Oliveira
|
d45fa7b212
|
Merge pull request #5123 from blueyed/clsname
TestReport: use class name in repr
|
2019-04-15 11:25:42 -03:00 |
Daniel Hahler
|
45ba736c81
|
Merge pull request #5128 from blueyed/mark-is
Fix error message with unregistered markers
|
2019-04-15 16:23:54 +02:00 |
Daniel Hahler
|
cc005af47e
|
Fix error message with unregistered markers
|
2019-04-15 10:15:37 +02:00 |
Daniel Hahler
|
20c624efcf
|
terminal: revisit summary_failures
- get the list of reports for teardown sections only once
- do not check option in loop
|
2019-04-15 06:47:51 +02:00 |
Daniel Hahler
|
b2be6c1a30
|
TestReport: use class name in repr
|
2019-04-15 05:47:45 +02:00 |
Daniel Hahler
|
c43a9c83ee
|
doc: pytest_deselected: not only via keywords
|
2019-04-14 23:53:06 +02:00 |
Daniel Hahler
|
e804e419bc
|
remove unnecessary newline
|
2019-04-14 23:53:06 +02:00 |
Daniel Hahler
|
992e7f7771
|
rename variable
|
2019-04-14 23:53:06 +02:00 |
Daniel Hahler
|
bd1a2e6435
|
fix typo
|
2019-04-14 23:53:06 +02:00 |
Daniel Hahler
|
1d137fd2fe
|
minor: LFPlugin: de-indent code by returning if not active
|
2019-04-14 23:53:06 +02:00 |
Daniel Hahler
|
6f0a5789fb
|
Merge master into features
|
2019-04-14 23:22:21 +02:00 |
Daniel Hahler
|
cc78a533ae
|
terminal: summary_errors: replace if with assert
|
2019-04-14 23:17:27 +02:00 |
Daniel Hahler
|
fd0b3e2e8b
|
getreportopt: remove needless if
|
2019-04-14 23:17:27 +02:00 |
Daniel Hahler
|
f3dbe5a308
|
pytester: listoutcomes: assert instead of implicit if
|
2019-04-14 23:00:38 +02:00 |
Daniel Hahler
|
1da8ce65a6
|
pytester: raise_on_kwargs: ignore branch coverage
|
2019-04-14 23:00:38 +02:00 |
Daniel Hahler
|
6a73714b00
|
deselect_by_keyword: skip without expression
There is no need to iterate over all items always, if `-k` is not
specified.
|
2019-04-14 19:01:33 +02:00 |
Daniel Hahler
|
6371243c10
|
summary_passes: use bold green for report headers
|
2019-04-14 15:21:11 +02:00 |
Daniel Hahler
|
8fd5a658eb
|
monkeypatch.syspath_prepend: invalidate import cache
This was done with testdir only, and uses the fixed monkeypatch method
there now.
|
2019-04-13 16:15:44 +02:00 |
Anthony Sottile
|
43e7401c91
|
Produce a warning when unknown arguments are passed to pytest.param()
|
2019-04-12 13:00:39 -07:00 |
Anthony Sottile
|
da2e092163
|
pre-commit autoupdate
|
2019-04-12 04:52:47 -07:00 |
Bruno Oliveira
|
19035f4b55
|
Merge pull request #5068 from blueyed/reportchars
Add support for reportchars=A (`-rA`)
|
2019-04-12 08:13:22 -03:00 |
Bruno Oliveira
|
14d3d9187f
|
Remove partial unicode characters from summary messages in Python 2
|
2019-04-11 19:01:21 -03:00 |
Samuel Searles-Bryant
|
a37d1df089
|
Show XFail reason as part of JUnitXML message field
Fixes #4907
|
2019-04-11 22:26:05 +01:00 |
Daniel Hahler
|
8b2fcf517c
|
Merge master
|
2019-04-11 13:28:36 +02:00 |
Daniel Hahler
|
b3759372ad
|
Merge pull request #5082 from blueyed/pytester-raise_on_kwargs
pytester: improve/fix kwargs validation
|
2019-04-11 00:46:18 +02:00 |
Bruno Oliveira
|
f5d2b199e2
|
Merge pull request #5069 from blueyed/cleanup-summary-to-terminal
cleanup: move terminal summary code to terminal plugin
|
2019-04-10 19:32:01 -03:00 |
Daniel Hahler
|
5d9d12a6be
|
pytester: improve/fix kwargs validation
|
2019-04-10 21:57:45 +02:00 |
Daniel Hahler
|
10fa66e5b5
|
Merge pull request #5059 from blueyed/pytester-popen-run-stdin
pytester: allow passing in stdin to run/popen
|
2019-04-10 20:32:22 +02:00 |
Bruno Oliveira
|
5e26304d81
|
Merge pull request #5075 from blueyed/console_output_style
terminal: console_output_style: document "count" with help
|
2019-04-09 20:54:12 -03:00 |
Bruno Oliveira
|
d0860a339b
|
Merge pull request #5076 from blueyed/_show_progress_info
terminal: store console_output_style in _show_progress_info
|
2019-04-09 20:37:50 -03:00 |
Daniel Hahler
|
ec46864922
|
run: pass through stdin, just close then
|
2019-04-10 00:02:38 +02:00 |
Daniel Hahler
|
c36a90531a
|
Move CLOSE_STDIN to class
|
2019-04-10 00:01:15 +02:00 |
Daniel Hahler
|
a70e5f119e
|
terminal: store console_output_style in _show_progress_info
Avoids ini lookups.
|
2019-04-08 04:34:26 +02:00 |
Daniel Hahler
|
b6b7185b7b
|
terminal: console_output_style: document "count" with help
|
2019-04-08 04:32:53 +02:00 |
Daniel Hahler
|
ff5e98c654
|
Change noqa comment to pragma
|
2019-04-08 03:48:42 +02:00 |
Daniel Hahler
|
2662c400ba
|
dedent
|
2019-04-07 20:04:31 +02:00 |
Daniel Hahler
|
d8d835c1f5
|
minor: use functools.partial
|
2019-04-07 19:49:18 +02:00 |
Daniel Hahler
|
06029d11d3
|
Refactor into TerminalReporter.short_test_summary
|
2019-04-07 19:49:18 +02:00 |
Daniel Hahler
|
c70ecd49ca
|
cleanup: move terminal summary code to terminal plugin
Fixes https://github.com/pytest-dev/pytest/issues/5067.
|
2019-04-07 18:22:04 +02:00 |
Daniel Hahler
|
b4b9f788af
|
Support reportchars=A (really all, including passed)
|
2019-04-07 18:05:33 +02:00 |
Daniel Hahler
|
a7e49e6c07
|
reportchars: fix/improve help message
|
2019-04-07 18:05:33 +02:00 |
Daniel Hahler
|
4fca86e2af
|
testdir.popen: use kwargs with defaults for stdout/stderr
|
2019-04-06 12:13:48 +02:00 |
Daniel Hahler
|
9ad00714ba
|
pytester: allow passing in stdin to run/popen
|
2019-04-06 12:13:28 +02:00 |
Daniel Hahler
|
377888140f
|
Merge master into features
Conflicts:
testing/test_pdb.py
|
2019-04-05 17:50:32 +02:00 |
Daniel Hahler
|
df377b589f
|
use wcwidth
|
2019-04-05 17:43:11 +02:00 |
Bruno Oliveira
|
87ce586d29
|
Merge pull request #5055 from blueyed/showhelp-lazy-fullwidth
showhelp: move tw.fullwidth out of the loop
|
2019-04-05 12:11:47 -03:00 |
Daniel Hahler
|
e20b39d928
|
showhelp: move tw.fullwidth out of the loop
|
2019-04-05 15:14:02 +02:00 |
Bruno Oliveira
|
4f33f46a02
|
Merge pull request #5026 from blueyed/compare-len-diff
Display number of different items with sequence/dict comparisons
|
2019-04-05 08:53:48 -03:00 |
Daniel Hahler
|
159704421e
|
change separator to hyphen
|
2019-04-05 12:21:24 +02:00 |
Daniel Hahler
|
0f965e57a2
|
changelog, fix branch coverage
|
2019-04-05 12:12:29 +02:00 |
Daniel Hahler
|
8011ff5bda
|
Add _sys_snapshot fixture and use it with more tests
|
2019-04-05 11:55:23 +02:00 |
Daniel Hahler
|
37ecca3ba9
|
factor out _get_line_with_reprcrash_message
|
2019-04-04 22:13:28 +02:00 |
Daniel Hahler
|
3d0ecd03ed
|
Display message from reprcrash in short test summary
This is useful to see common patterns easily, but also for single
failures already.
|
2019-04-04 18:49:13 +02:00 |
Daniel Hahler
|
eb5b2e0db5
|
Support glob argument with ``--cache-show``
|
2019-04-04 18:10:39 +02:00 |
Daniel Hahler
|
47d92a0d96
|
Add tests and improve messages
|
2019-04-04 17:53:39 +02:00 |
Daniel Hahler
|
7f1bf44aa8
|
_compare_eq_dict: display number of different items
|
2019-04-04 17:16:21 +02:00 |
Daniel Hahler
|
5fec793bc7
|
_compare_eq_sequence: display number of extra items
|
2019-04-04 17:16:21 +02:00 |
Bruno Oliveira
|
e04936fc29
|
Merge pull request #5042 from blueyed/merge-regen-master-into-features
Merge master into features (with regen)
|
2019-04-04 10:44:30 -03:00 |
Daniel Hahler
|
0d4636b056
|
Merge pull request #5034 from blueyed/run-last-failure-report
run-last-failure: improve reporting
|
2019-04-04 00:40:40 +02:00 |
Daniel Hahler
|
a65edf6711
|
Merge pull request #5028 from blueyed/fix-wrap_session-exit-code
wrap_session: restore old behavior for initstate=1
|
2019-04-04 00:39:38 +02:00 |
Daniel Hahler
|
757ada2fd2
|
pdb: try to import --pdbcls in pytest_configure only
Fixes https://github.com/pytest-dev/pytest/issues/5039.
|
2019-04-03 22:35:18 +02:00 |
Daniel Hahler
|
e88aa957ae
|
Merge pull request #4854 from blueyed/pdb-skip
pdb: add option to skip `pdb.set_trace()`
|
2019-04-03 22:25:38 +02:00 |
Daniel Hahler
|
8907fedc79
|
Merge master into features (with regen branch)
|
2019-04-03 22:11:00 +02:00 |
Daniel Hahler
|
1f5a61e4ef
|
run-last-failure: improve reporting
|
2019-04-03 16:27:12 +02:00 |
Daniel Hahler
|
d91527599a
|
pytester: use monkeypatch with Testdir
|
2019-04-03 15:02:53 +02:00 |
Daniel Hahler
|
7538aa7bb9
|
minor: check_interactive_exception: use Skipped
|
2019-04-03 11:45:45 +02:00 |
Daniel Hahler
|
9434541090
|
doc: mention that pytest.fixture's param is in request.param
|
2019-04-03 11:45:45 +02:00 |
Daniel Hahler
|
cc90bcce4c
|
wrap_session: restore old behavior for initstate=1
|
2019-04-03 05:09:21 +02:00 |
Bruno Oliveira
|
15ea5cef46
|
Merge pull request #4943 from blueyed/remove-silence_logging_at_shutdown
capture: do not set logging.raiseExceptions = False
|
2019-04-02 22:46:15 -03:00 |
Daniel Hahler
|
32a8d503a2
|
Merge pull request #5005 from blueyed/essential_plugins
Split out list of essential plugins
|
2019-04-03 02:45:19 +02:00 |
Daniel Hahler
|
8c734dfc2f
|
Split out list of essential plugins
Fixes https://github.com/pytest-dev/pytest/issues/4976.
|
2019-04-02 14:39:56 +02:00 |
Daniel Hahler
|
08ded2927a
|
capture: do not set logging.raiseExceptions = False
Ref: https://github.com/pytest-dev/pytest/issues/4942
|
2019-04-02 13:20:39 +02:00 |
Zac Hatfield-Dodds
|
cab4069f42
|
Clarify mark.__getattr__
|
2019-04-02 12:31:42 +11:00 |
Zac Hatfield-Dodds
|
4f6c67658c
|
Use mark-specific warning type
So that we can ignore it in self-tests.
|
2019-04-01 12:38:33 +11:00 |
Zac Hatfield-Dodds
|
9121138a1b
|
Emit warning for unknown marks
|
2019-04-01 10:40:18 +11:00 |
Zac-HD
|
ba1fc02a9b
|
Register mark used by pytester
|
2019-03-31 14:22:30 +11:00 |
Zac-HD
|
38d687f7c7
|
Fix typos in comments
|
2019-03-31 14:22:30 +11:00 |
Bruno Oliveira
|
278b289f37
|
Merge pull request #4968 from blueyed/pdb-do_debug-quit
pdb: do not raise outcomes.Exit with quit in debug
|
2019-03-29 16:22:02 -03:00 |
Daniel Hahler
|
e7ade066b6
|
Merge pull request #5011 from blueyed/merge-master-into-features
Merge master into features
|
2019-03-29 18:35:13 +01:00 |
Daniel Hahler
|
adebfd0a84
|
pdb: add option to skip `pdb.set_trace()`
|
2019-03-29 11:13:38 +01:00 |
Daniel Hahler
|
4e931b258d
|
Merge master into features
|
2019-03-29 11:05:46 +01:00 |
Daniel Hahler
|
4011021823
|
pdb: do not raise outcomes.Exit with quit in debug
|
2019-03-29 11:02:34 +01:00 |
Daniel Hahler
|
bfda2a0050
|
setup.cfg: use existing [tool:pytest] (ignoring [pytest])
|
2019-03-29 10:59:27 +01:00 |
Bruno Oliveira
|
6b5cddc48a
|
Merge pull request #4951 from blueyed/fix-pdb-capfix
pdb: handle capturing with fixtures only
|
2019-03-28 20:34:28 -03:00 |
Gary Tyler
|
403f556928
|
Update docs for 'pytest_cmdline_parse' hook to note availability liminations
|
2019-03-28 19:25:55 -04:00 |
Bruno Oliveira
|
d8ef86aadf
|
Merge pull request #4993 from blueyed/stepwise-report
stepwise: report status via pytest_report_collectionfinish
|
2019-03-28 20:24:18 -03:00 |
Bruno Oliveira
|
a9fe1e159a
|
Merge pull request #4965 from nicoddemus/serialization-hooks
Serialization hooks
|
2019-03-28 20:22:19 -03:00 |
Bruno Oliveira
|
65c8e8a09e
|
Rename hooks: to/from_serializable
|
2019-03-28 13:41:56 -03:00 |
Daniel Hahler
|
63a01bdb33
|
Factor out pytestPDB._is_capturing
|
2019-03-28 11:49:01 +01:00 |
Daniel Hahler
|
951213ee09
|
Use new suspend/resume in global_and_fixture_disabled
|
2019-03-28 11:49:01 +01:00 |
Daniel Hahler
|
40718efacc
|
Fix/revisit do_continue with regard to conditions
|
2019-03-28 11:49:01 +01:00 |
Daniel Hahler
|
d406786a8d
|
pdb: handle capturing with fixtures only
|
2019-03-28 11:49:01 +01:00 |
Daniel Hahler
|
d17ea7a9c0
|
tests: ensure cleanup with configs via get_config()
Also done in test_pluginmanager, although no resource warnings are
there at least.
Fixes https://github.com/pytest-dev/pytest/issues/4355.
|
2019-03-28 00:14:13 +01:00 |