• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kunittest
 

kunittest

Classes | Namespaces | Defines | Typedefs
runner.h File Reference
#include <iostream>
#include <tqobject.h>
#include <tqasciidict.h>
#include <tqstring.h>
#include <kdelibs_export.h>
#include "tester.h"

Go to the source code of this file.

Classes

class  KUnitTest::Runner
class  KUnitTest::TesterAutoregister

Namespaces

namespace  KUnitTest

Defines

#define KUNITTEST_SUITE(suite)   static const TQString s_kunittest_suite = suite;
#define KUNITTEST_REGISTER_TESTER(tester)   static TesterAutoregister tester##Autoregister( TQString(s_kunittest_suite + TQString("::") + TQString::fromLocal8Bit(#tester)).local8Bit() , new tester ())
#define KUNITTEST_REGISTER_NAMEDTESTER(name, tester)   static TesterAutoregister tester##Autoregister( TQString(s_kunittest_suite + TQString("::") + TQString::fromLocal8Bit(name)).local8Bit() , new tester ())

Typedefs

typedef TQAsciiDict< Tester > KUnitTest::RegistryType
typedef TQAsciiDictIterator
< Tester > 
KUnitTest::RegistryIteratorType

Detailed Description

Defines a set of macros and classes for running unit tests

Definition in file runner.h.


Define Documentation

#define KUNITTEST_REGISTER_TESTER (   tester)    static TesterAutoregister tester##Autoregister( TQString(s_kunittest_suite + TQString("::") + TQString::fromLocal8Bit(#tester)).local8Bit() , new tester ())

Automatic registration of Tester classes.

This macro can be used to register the Tester into the global registry. Use this macro in the implementation file of your Tester class. If you keep the Tester classes in a shared or convenience library then you should not use this macro as this macro relies on the static initialization of a TesterAutoregister class. You can always use the static Runner::registerTester(const char *name, Tester *test) method.

Definition at line 68 of file runner.h.

#define KUNITTEST_SUITE (   suite)    static const TQString s_kunittest_suite = suite;

This macro must be used if you are not making a test-module. The macro defines the name of the test suite.

Definition at line 56 of file runner.h.

kunittest

Skip menu "kunittest"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kunittest

Skip menu "kunittest"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kunittest by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |