All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions
Qtilities::Testing::Interfaces::ITestable Class Reference

Objects implementing this interface indicate that unit tests can be performed on them. More...

#include <ITestable.h>

Inheritance diagram for Qtilities::Testing::Interfaces::ITestable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int execTest (int argc=0, char **argv=0)=0
 Function which will be called when the test must be executed on the testable object.
virtual QString testName () const =0
 Provide a name for your test.
- Public Member Functions inherited from Qtilities::Core::Interfaces::IObjectBase
virtual QObject * objectBase ()=0
 Returns the QObject* base of the interface.
virtual const QObject * objectBase () const =0
 Returns a const QObject* base of the interface.
QString objectOriginID () const
 Allows interfaces to provide some sort of source identification.
void setObjectOriginID (const QString &object_origin_id)
 Allows setting of the object source ID of this interface implementation.

Detailed Description

Objects implementing this interface indicate that unit tests can be performed on them.

For an example of how to implement ITestable, see Qtilities::Testing::TestVersionNumber.

This class was added in Qtilities v1.0.



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé