diff options
author | Zack Galbreath <zack.galbreath@kitware.com> | 2021-04-22 23:38:43 (GMT) |
---|---|---|
committer | Zack Galbreath <zack.galbreath@kitware.com> | 2021-04-26 12:55:22 (GMT) |
commit | 25bf514447501963a31934b5b03c65aeb53a351f (patch) | |
tree | 9a8392707d6376d588da56100a9ab214abd2ef43 /Help/command/ctest_test.rst | |
parent | eeb771e4d6b9a1127a0818a211cafb722a2dc387 (diff) | |
download | CMake-25bf514447501963a31934b5b03c65aeb53a351f.zip CMake-25bf514447501963a31934b5b03c65aeb53a351f.tar.gz CMake-25bf514447501963a31934b5b03c65aeb53a351f.tar.bz2 |
ctest: Add support for writing test results in JUnit XML format
Addresses #18654
Diffstat (limited to 'Help/command/ctest_test.rst')
-rw-r--r-- | Help/command/ctest_test.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst index b4493a0..9081b3f 100644 --- a/Help/command/ctest_test.rst +++ b/Help/command/ctest_test.rst @@ -25,6 +25,7 @@ Perform the :ref:`CTest Test Step` as a :ref:`Dashboard Client`. [RETURN_VALUE <result-var>] [CAPTURE_CMAKE_ERROR <result-var>] [REPEAT <mode>:<n>] + [OUTPUT_JUNIT <file>] [QUIET] ) @@ -150,6 +151,15 @@ The options are: Store in the ``<result-var>`` variable -1 if there are any errors running the command and prevent ctest from returning non-zero if an error occurs. +``OUTPUT_JUNIT`` + .. versionadded:: 3.21 + + Write test results to ``<file>`` in JUnit XML format. If ``<file>`` is a + relative path it will be placed in the build directory. If ``<file>>`` + already exists it will be overwritten. Note that the resulting JUnit XML + file is **not** uploaded to CDash because it would be redundant with + CTest's ``Test.xml`` file. + ``QUIET`` .. versionadded:: 3.3 |