Update changelog and add usage info

This commit is contained in:
Dmitri Pribysh 2017-05-12 04:54:15 +03:00 committed by Bruno Oliveira
parent c9282f9e94
commit 2ab8d12fe3
2 changed files with 11 additions and 1 deletions

View File

@ -5,7 +5,7 @@
New Features New Features
------------ ------------
* junitxml: Add `--junit-suite-name` option to specify root `<testsuite>` name for JUnit XML reports * fix `#533`_: Added ``junit_suite_name`` ini option to specify root `<testsuite>` name for JUnit XML reports
* Added an ini option ``doctest_encoding`` to specify which encoding to use for doctest files. * Added an ini option ``doctest_encoding`` to specify which encoding to use for doctest files.
Thanks `@wheerd`_ for the PR (`#2101`_). Thanks `@wheerd`_ for the PR (`#2101`_).
@ -105,6 +105,7 @@ Bug Fixes
.. _@ojii: https://github.com/ojii .. _@ojii: https://github.com/ojii
.. _#533: https://github.com/pytest-dev/pytest/issues/533
.. _#1407: https://github.com/pytest-dev/pytest/issues/1407 .. _#1407: https://github.com/pytest-dev/pytest/issues/1407
.. _#1512: https://github.com/pytest-dev/pytest/issues/1512 .. _#1512: https://github.com/pytest-dev/pytest/issues/1512
.. _#1821: https://github.com/pytest-dev/pytest/issues/1821 .. _#1821: https://github.com/pytest-dev/pytest/issues/1821

View File

@ -177,6 +177,15 @@ integration servers, use this invocation::
to create an XML file at ``path``. to create an XML file at ``path``.
.. versionadded:: 3.1
To set the name of the root test suite xml item, you can configure the ``junit_suite_name`` option in your config file:
.. code-block:: ini
[pytest]
junit_suite_name = my_suite
record_xml_property record_xml_property
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^