Merge pull request #5438 from nicoddemus/result-log-deprecation
Postpone removal of --result-log to pytest 6.0
This commit is contained in:
		
						commit
						ede8b87560
					
				|  | @ -0,0 +1,2 @@ | ||||||
|  | The removal of the ``--result-log`` option and module has been postponed to (tentatively) pytest 6.0 as | ||||||
|  | the team has not yet got around to implement a good alternative for it. | ||||||
|  | @ -101,20 +101,21 @@ Becomes: | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| Result log (``--result-log``) | Result log (``--result-log``) | ||||||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||||
| 
 | 
 | ||||||
|  | .. deprecated:: 4.0 | ||||||
| 
 | 
 | ||||||
|  | The ``--result-log`` option produces a stream of test reports which can be | ||||||
|  | analysed at runtime. It uses a custom format which requires users to implement their own | ||||||
|  | parser, but the team believes using a line-based format that can be parsed using standard | ||||||
|  | tools would provide a suitable and better alternative. | ||||||
| 
 | 
 | ||||||
| The ``--resultlog`` command line option has been deprecated: it is little used | The current plan is to provide an alternative in the pytest 5.0 series and remove the ``--result-log`` | ||||||
| and there are more modern and better alternatives, for example `pytest-tap <https://tappy.readthedocs.io/en/latest/>`_. | option in pytest 6.0 after the new implementation proves satisfactory to all users and is deemed | ||||||
|  | stable. | ||||||
| 
 | 
 | ||||||
| This feature will be effectively removed in pytest 4.0 as the team intends to include a better alternative in the core. | The actual alternative is still being discussed in issue `#4488 <https://github.com/pytest-dev/pytest/issues/4488>`__. | ||||||
| 
 |  | ||||||
| If you have any concerns, please don't hesitate to `open an issue <https://github.com/pytest-dev/pytest/issues>`__. |  | ||||||
| 
 | 
 | ||||||
| Removed Features | Removed Features | ||||||
| ---------------- | ---------------- | ||||||
|  |  | ||||||
|  | @ -40,7 +40,7 @@ RAISES_MESSAGE_PARAMETER = PytestDeprecationWarning( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| RESULT_LOG = PytestDeprecationWarning( | RESULT_LOG = PytestDeprecationWarning( | ||||||
|     "--result-log is deprecated and scheduled for removal in pytest 5.0.\n" |     "--result-log is deprecated and scheduled for removal in pytest 6.0.\n" | ||||||
|     "See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information." |     "See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information." | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -49,7 +49,7 @@ def test_resultlog_is_deprecated(testdir): | ||||||
|     result = testdir.runpytest("--result-log=%s" % testdir.tmpdir.join("result.log")) |     result = testdir.runpytest("--result-log=%s" % testdir.tmpdir.join("result.log")) | ||||||
|     result.stdout.fnmatch_lines( |     result.stdout.fnmatch_lines( | ||||||
|         [ |         [ | ||||||
|             "*--result-log is deprecated and scheduled for removal in pytest 5.0*", |             "*--result-log is deprecated and scheduled for removal in pytest 6.0*", | ||||||
|             "*See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information*", |             "*See https://docs.pytest.org/en/latest/deprecations.html#result-log-result-log for more information*", | ||||||
|         ] |         ] | ||||||
|     ) |     ) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue