Loading...
Searching...
No Matches
TestListener.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_TESTLISTENER_H
#define ROBOTTESTINGFRAMEWORK_TESTLISTENER_H
#include <robottestingframework/Test.h>
#include <robottestingframework/TestMessage.h>
namespace robottestingframework {
class TestListener
{
public:
TestListener() = default;
virtual ~TestListener() = default;
virtual void addReport(const Test* test, TestMessage msg)
{
}
virtual void addError(const Test* test, TestMessage msg)
{
}
virtual void addFailure(const Test* test, TestMessage msg)
{
}
virtual void startTest(const Test* test)
{
}
virtual void endTest(const Test* test)
{
}
virtual void startTestSuite(const Test* test)
{
}
virtual void endTestSuite(const Test* test)
{
}
virtual void startTestRunner()
{
}
virtual void endTestRunner()
{
}
};
} // namespace robottestingframework
#endif // ROBOTTESTINGFRAMEWORK_TESTLISTENER_H
TestMessage.h
Test.h
robottestingframework::TestListener
The base class of any test result listeners.
Definition TestListener.h:34
robottestingframework::TestListener::~TestListener
virtual ~TestListener()=default
TestListener destructor.
robottestingframework::TestListener::addReport
virtual void addReport(const Test *test, TestMessage msg)
This is called to report any arbitrary message from tests.
Definition TestListener.h:52
robottestingframework::TestListener::addError
virtual void addError(const Test *test, TestMessage msg)
This is called when an error occurred during test run.
Definition TestListener.h:61
robottestingframework::TestListener::TestListener
TestListener()=default
TestListener constructor.
robottestingframework::TestListener::startTestSuite
virtual void startTestSuite(const Test *test)
This is called when a TestSuite is started.
Definition TestListener.h:94
robottestingframework::TestListener::endTestSuite
virtual void endTestSuite(const Test *test)
This is called when a TestSuite is finished.
Definition TestListener.h:102
robottestingframework::TestListener::addFailure
virtual void addFailure(const Test *test, TestMessage msg)
This is called when a failure occurred during test run.
Definition TestListener.h:70
robottestingframework::TestListener::endTest
virtual void endTest(const Test *test)
This is called when a Test is finished.
Definition TestListener.h:86
robottestingframework::TestListener::startTest
virtual void startTest(const Test *test)
This is called when a Test is started.
Definition TestListener.h:78
robottestingframework::TestListener::endTestRunner
virtual void endTestRunner()
This is called when the TestRunner is finished.
Definition TestListener.h:116
robottestingframework::TestListener::startTestRunner
virtual void startTestRunner()
This is called when the TestRunner is started.
Definition TestListener.h:109
robottestingframework::TestMessage
A formated message with details.
Definition TestMessage.h:33
robottestingframework::Test
The simplest form of a test unit.
Definition Test.h:35
robottestingframework
Definition Arguments.h:25