Add -ignore <file> option to get rid of DOS script issues.

Rollback to previous rendering.
This commit is contained in:
Francis ANDRE
2019-12-18 16:27:19 +01:00
parent b5ca9353be
commit 6a81580533
7 changed files with 172 additions and 91 deletions

View File

@@ -50,7 +50,7 @@ public:
void addTest(const std::string& name, Test* test);
protected:
bool run(Test* test);
bool run(Test* test, const std::string& ignore);
void printBanner();
void print(const std::string& name, Test* pTest, int indent);
Test* find(const std::string& name, Test* pTest, const std::string& testName);

View File

@@ -20,8 +20,10 @@ class CppUnit_API TextTestResult: public TestResult
{
public:
TextTestResult();
TextTestResult(const std::string& ignore);
TextTestResult(std::ostream& ostr);
TextTestResult(std::ostream& ostr, const std::string& ignore);
virtual void addError(Test* test, CppUnitException* e);
virtual void addFailure(Test* test, CppUnitException* e);
virtual void startTest(Test* test);
@@ -33,6 +35,7 @@ public:
protected:
std::string shortName(const std::string& testName);
void setup();
void ignoring(const std::string ignore);
private:
std::ostream& _ostr;