Celero
JUnit.h
1 #pragma once
2 
20 
21 #include <celero/Experiment.h>
22 #include <celero/Pimpl.h>
23 
24 #include <string>
25 
26 namespace celero
27 {
33  class JUnit
34  {
35  public:
39  static JUnit& Instance();
40 
46  void setFileName(const std::string& x);
47 
53  void add(std::shared_ptr<celero::ExperimentResult> x);
54 
58  void save();
59 
60  private:
64  class Impl;
65 
69  Pimpl<Impl> pimpl;
70  };
71 } // namespace celero
72 
Definition: Archive.h:25
void add(std::shared_ptr< celero::ExperimentResult > x)
Add a new result to the JUnit output XML.
Definition: JUnit.cpp:61
void setFileName(const std::string &x)
Specify a file name for a results output file.
Definition: JUnit.cpp:55
Definition: Pimpl.h:36
Definition: JUnit.cpp:38
void save()
Save the JUnit (XUnit) formatted file to the given file name.
Definition: JUnit.cpp:67
static JUnit & Instance()
Singleton.
Definition: JUnit.cpp:49
Definition: JUnit.h:33