diff options
| author | Leitwolf11 | 2026-09-24 23:05:47 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-09-24 23:05:47 +0300 |
| commit | d79b294903e4d0f4b24fdf1cc50be4b0fec7f745 (patch) | |
| tree | 64f0c7c3dfbc08bfb70d9a37df5cccae3d52b526 /src/Progmasoft/Catch3/XmlWriter.hpp | |
| parent | 9ad804cedf4cc4a85ef89fe097f97a3b44654360 (diff) | |
| download | catch3-0.2.0.tar.gz | |
Add snapshots and JUnit result serialization0.2.0
Diffstat (limited to 'src/Progmasoft/Catch3/XmlWriter.hpp')
| -rw-r--r-- | src/Progmasoft/Catch3/XmlWriter.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Progmasoft/Catch3/XmlWriter.hpp b/src/Progmasoft/Catch3/XmlWriter.hpp new file mode 100644 index 00000000..3216b5ae --- /dev/null +++ b/src/Progmasoft/Catch3/XmlWriter.hpp @@ -0,0 +1,20 @@ +// Copyright (c) 2026 Progmasoft. +// SPDX-License-Identifier: MPL-2.0 WITH AdditionRef-Progmasoft-Exception-1.1 +#pragma once + +#include <iosfwd> +#include <string> + +namespace Progmasoft::Catch3 { + + struct TestRunResult; + + /// Emits deterministic JUnit-style XML without timestamps or global state. + class JUnitXmlWriter final { + public: + static void Write( const TestRunResult& result, std::ostream& output ); + [[nodiscard]] static std::string + ToString( const TestRunResult& result ); + }; + +} // namespace Progmasoft::Catch3 |