Loading...
Searching...
No Matches
TextOutputter.h
Go to the documentation of this file.
/*
* Robot Testing Framework
*
* Copyright (C) 2015-2019 Istituto Italiano di Tecnologia (IIT)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ROBOTTESTINGFRAMEWORK_TEXTOUTPUTTER_H
#define ROBOTTESTINGFRAMEWORK_TEXTOUTPUTTER_H
#include <robottestingframework/TestMessage.h>
#include <robottestingframework/TestResultCollector.h>
#include <string>
namespace robottestingframework {
class TextOutputter
{
public:
TextOutputter(TestResultCollector& collector,
bool verbose = false);
virtual ~TextOutputter();
bool write(std::string filename,
bool summary,
TestMessage* errorMsg = nullptr);
private:
bool verbose;
TestResultCollector& collector;
};
} // namespace robottestingframework
#endif // ROBOTTESTINGFRAMEWORK_TEXTOUTPUTTER_H
TestMessage.h
TestResultCollector.h
robottestingframework::TestMessage
A formated message with details.
Definition TestMessage.h:33
robottestingframework::TestResultCollector
The TestResultCollector class can be used to store all the events issued by the test cases,...
Definition TestResultCollector.h:44
robottestingframework::TextOutputter::~TextOutputter
virtual ~TextOutputter()
~TextOutputter destructor
robottestingframework::TextOutputter::write
bool write(std::string filename, bool summary, TestMessage *errorMsg=nullptr)
write Write the results of the test in a text file.
robottestingframework::TextOutputter::collector
TestResultCollector & collector
Definition TextOutputter.h:77
robottestingframework::TextOutputter::verbose
bool verbose
Definition TextOutputter.h:76
robottestingframework::TextOutputter::TextOutputter
TextOutputter(TestResultCollector &collector, bool verbose=false)
TextOutputter constructor.
robottestingframework
Definition Arguments.h:25