OpenLexocad  27.0
TestRunner.h
Go to the documentation of this file.
1 #pragma once
2 
3 #pragma warning(push)
4 #pragma warning(disable : 4100)
5 #include <string>
6 #pragma warning(pop)
7 
8 #include <Base/base_defines.h>
9 
10 #include <QStringList>
11 #include <iostream>
12 
13 namespace Base
14 {
16 {
17 public:
19  {
21  XML
22  };
23 
24 
25  TestRunnerSingleton::TestRunnerSingleton();
26  TestRunnerSingleton::~TestRunnerSingleton();
27  static TestRunnerSingleton& instance();
28 
29  virtual void printResult();
30  // If true the test it will be the only test
31  // run by the TestRunner
32  virtual void setTestExclusive(const std::string& testName, bool yesno) = 0;
33  virtual bool run(bool loadTestTxtFile = true) = 0;
34  virtual void setOutPutStream(std::ostream& stream, OutPutType otype) = 0;
35  virtual void setSuites(QStringList& suites) = 0;
36 
37 protected:
39 };
40 
41 // Get the global instance
43 {
45 }
46 
47 } // namespace Base
Definition: TestRunner.h:20
#define BASE_EXPORT
Definition: base_defines.h:12
Definition: TestRunner.h:15
BASE_EXPORT TestRunnerSingleton & TestRunner(void)
Definition: TestRunner.h:42
static TestRunnerSingleton * _instance
Definition: TestRunner.h:38
static TestRunnerSingleton & instance()
OutPutType
Definition: TestRunner.h:18
Definition: AbstractXMLReader.h:8