C++Spec 1.1.0
BDD testing for C++
Loading...
Searching...
No Matches
CppSpec::JUnitOutputFile Struct Reference

The file that –output-junit names, with the JUnit XML formatter that writes to it. More...

#include <argparse.hpp>

Collaboration diagram for CppSpec::JUnitOutputFile:

Public Member Functions

 JUnitOutputFile (const std::string &path)

Public Attributes

std::ofstream stream
Formatters::JUnitXML formatter {stream, false}

Detailed Description

The file that –output-junit names, with the JUnit XML formatter that writes to it.

The formatter is declared after the stream, so it is destroyed first: its destructor writes the XML to a stream that is still open, and the stream is closed after it.


The documentation for this struct was generated from the following file: