YARP
Yet Another Robot Platform
yarp::robottestingframework::TestCase Class Reference

The YarpTestCase is a helper class to facilitate loading the tests settings which are developed for YARP. More...

#include <yarp/robottestingframework/TestCase.h>

+ Inheritance diagram for yarp::robottestingframework::TestCase:

Classes

class  Private
 

Public Member Functions

 TestCase (std::string name)
 
virtual ~TestCase ()
 
bool setup (int argc, char **argv) override
 
virtual bool setup (yarp::os::Property &property)
 

Detailed Description

The YarpTestCase is a helper class to facilitate loading the tests settings which are developed for YARP.

The class simply looks for test configuration file given using "--from" parameter to the test case and loads it into a yarp::os::Property object.

If any environment property is given using "testrunner -e" or using <environment> </environment> tag within suite XML file, that will be used to updated the properties from the main config file.

Please see RobotTestingFramework example folder for how to develop a simple test plugin for YARP.

Definition at line 34 of file TestCase.h.

Constructor & Destructor Documentation

◆ TestCase()

yarp::robottestingframework::TestCase::TestCase ( std::string  name)

Definition at line 28 of file TestCase.cpp.

◆ ~TestCase()

yarp::robottestingframework::TestCase::~TestCase ( )
virtual

Definition at line 34 of file TestCase.cpp.

Member Function Documentation

◆ setup() [1/2]

bool yarp::robottestingframework::TestCase::setup ( int  argc,
char **  argv 
)
override

Definition at line 40 of file TestCase.cpp.

◆ setup() [2/2]

bool yarp::robottestingframework::TestCase::setup ( yarp::os::Property property)
virtual

Definition at line 93 of file TestCase.cpp.


The documentation for this class was generated from the following files: