Skip to content

Commit

Permalink
support very verbose in CompositeTestOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Orazov/Platform Lab /SRR/Samsung Electronics committed Aug 13, 2023
1 parent 484e098 commit 0b7720c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/CppUTest/TestOutput.h
Expand Up @@ -198,6 +198,8 @@ class CompositeTestOutput : public TestOutput
virtual void printFailure(const TestFailure& failure) _override;
virtual void setProgressIndicator(const char*) _override;

virtual void printVeryVerbose(const char*) _override;

virtual void flush() _override;

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/CppUTest/CommandLineTestRunner.cpp
Expand Up @@ -191,7 +191,7 @@ bool CommandLineTestRunner::parseArguments(TestPlugin* plugin)

if (arguments_->isJUnitOutput()) {
output_= createJUnitOutput(arguments_->getPackageName());
if (arguments_->isVerbose())
if (arguments_->isVerbose() || arguments_->isVeryVerbose())
output_ = createCompositeOutput(output_, createConsoleOutput());
} else if (arguments_->isTeamCityOutput()) {
output_ = createTeamCityOutput();
Expand Down
6 changes: 6 additions & 0 deletions src/CppUTest/TestOutput.cpp
Expand Up @@ -400,6 +400,12 @@ void CompositeTestOutput::setProgressIndicator(const char* indicator)
if (outputTwo_) outputTwo_->setProgressIndicator(indicator);
}

void CompositeTestOutput::printVeryVerbose(const char* str)
{
if (outputOne_) outputOne_->printVeryVerbose(str);
if (outputTwo_) outputTwo_->printVeryVerbose(str);
}

void CompositeTestOutput::flush()
{
if (outputOne_) outputOne_->flush();
Expand Down

0 comments on commit 0b7720c

Please sign in to comment.