Add tests for progress output and docs for `console_output_style`

Fix #2657
This commit is contained in:
Bruno Oliveira
2017-11-21 20:43:12 -02:00
parent 3441084bd2
commit 3a5dbabf60
3 changed files with 79 additions and 2 deletions

View File

@@ -312,3 +312,22 @@ Builtin configuration file options
relative to :ref:`rootdir <rootdir>`. Additionally path may contain environment
variables, that will be expanded. For more information about cache plugin
please refer to :ref:`cache_provider`.
.. confval:: console_output_style
.. versionadded:: 3.3
Sets the console output style while running tests:
* ``classic``: classic pytest output.
* ``progress``: like classic pytest output, but with a progress indicator.
The default is ``progress``, but you can fallback to ``classic`` if you prefer or
the new mode is causing unexpected problems:
.. code-block:: ini
# content of pytest.ini
[pytest]
console_output_style = classic