diff --git a/doc/env.rst b/doc/env.rst index 97ab252..d3e6aee 100644 --- a/doc/env.rst +++ b/doc/env.rst @@ -23,6 +23,7 @@ Command line arguments * ``-S or --short-filename``: The filenames are displayed in their short form. * ``--always-succeed``: The process shall exit with a status of ``0``. * ``--tap``: Enables the TAP (Test Anything Protocol) output format. +* ``--xml``: Enables the JUnit4 XML output format. * ``--verbose[=level]``: Makes the output verbose. When provided with an integer, sets the verbosity level to that integer. @@ -71,6 +72,7 @@ Environment variables are alternatives to command line switches when set to 1. * ``CRITERION_ALWAYS_SUCCEED``: Same as ``--always-succeed``. * ``CRITERION_NO_EARLY_EXIT``: Same as ``--no-early-exit``. * ``CRITERION_ENABLE_TAP``: Same as ``--tap``. +* ``CRITERION_ENABLE_XML``: Same as ``--xml``. * ``CRITERION_FAIL_FAST``: Same as ``--fail-fast``. * ``CRITERION_USE_ASCII``: Same as ``--ascii``. * ``CRITERION_JOBS``: Same as ``jobs``. Sets the number of jobs to diff --git a/src/entry/main.c b/src/entry/main.c index 5c1de36..6b5f914 100644 --- a/src/entry/main.c +++ b/src/entry/main.c @@ -62,6 +62,7 @@ "name of the source file on a failure\n" \ PATTERN_USAGE \ " --tap: enables TAP formatting\n" \ + " --xml: enables XML formatting\n" \ " --always-succeed: always exit with 0\n" \ " --no-early-exit: do not exit the test worker " \ "prematurely after the test\n" \