File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,10 @@ class RemovedInPytest4Warning(DeprecationWarning):
2626
2727GETFUNCARGVALUE = "use of getfuncargvalue is deprecated, use getfixturevalue"
2828
29- RESULT_LOG = '--result-log is deprecated and scheduled for removal in pytest 4.0'
29+ RESULT_LOG = (
30+ '--result-log is deprecated and scheduled for removal in pytest 4.0.\n '
31+ 'See https://docs.pytest.org/en/latest/usage.html#creating-resultlog-format-files for more information.'
32+ )
3033
3134MARK_INFO_ATTRIBUTE = RemovedInPytest4Warning (
3235 "MarkInfo objects are deprecated as they contain the merged marks"
Original file line number Diff line number Diff line change 1+ Improve user guidance regarding ``--resultlog`` deprecation.
Original file line number Diff line number Diff line change @@ -311,6 +311,13 @@ Creating resultlog format files
311311
312312 This option is rarely used and is scheduled for removal in 4.0.
313313
314+ An alternative for users which still need similar functionality is to use the
315+ `pytest-tap <https://pypi.python.org/pypi/pytest-tap >`_ plugin which provides
316+ a stream of test data.
317+
318+ If you have any concerns, please don't hesitate to
319+ `open an issue <https://github.com/pytest-dev/pytest/issues >`_.
320+
314321To create plain-text machine-readable result files you can issue::
315322
316323 pytest --resultlog=path
Original file line number Diff line number Diff line change @@ -78,4 +78,7 @@ def test():
7878 pass
7979 ''' )
8080 result = testdir .runpytest ('--result-log=%s' % testdir .tmpdir .join ('result.log' ))
81- result .stdout .fnmatch_lines (['*--result-log is deprecated and scheduled for removal in pytest 4.0*' ])
81+ result .stdout .fnmatch_lines ([
82+ '*--result-log is deprecated and scheduled for removal in pytest 4.0*' ,
83+ '*See https://docs.pytest.org/*/usage.html#creating-resultlog-format-files for more information*' ,
84+ ])
You can’t perform that action at this time.
0 commit comments