Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/Progmasoft/Catch3/XmlWriter.hpp
blob: 3216b5ae76d13280bd07052b2d1490e70358ae1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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