11 lines
701 B
ReStructuredText
11 lines
701 B
ReStructuredText
The pytest team has created the `pytest-reportlog <https://github.com/pytest-dev/pytest-reportlog>`__
|
|
plugin, which provides a new ``--report-log=FILE`` option that writes *report logs* into a file as the test session executes.
|
|
|
|
Each line of the report log contains a self contained JSON object corresponding to a testing event,
|
|
such as a collection or a test result report. The file is guaranteed to be flushed after writing
|
|
each line, so systems can read and process events in real-time.
|
|
|
|
The plugin is meant to replace the ``--resultlog`` option, which is deprecated and meant to be removed
|
|
in a future release. If you use ``--resultlog``, please try out ``pytest-reportlog`` and
|
|
provide feedback.
|