• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KUnitTest

  • KUnitTest
  • TestResults
Public Member Functions | List of all members
KUnitTest::TestResults Class Reference

#include <tester.h>

Public Member Functions

 TestResults ()
 
virtual ~TestResults ()
 
virtual void addDebugInfo (const QString &debug)
 
virtual void clear ()
 
QString debugInfo () const
 
QStringList errorList () const
 
int errors () const
 
int passed () const
 
QStringList skipList () const
 
int skipped () const
 
QStringList successList () const
 
int testsFinished () const
 
QStringList xfailList () const
 
int xfails () const
 
int xpasses () const
 
QStringList xpassList () const
 

Detailed Description

A simple class that encapsulates a test result. A Tester class usually has a single TestResults instance associated with it, however the SlotTester class can have more TestResults instances (one for each test slot in fact).

Definition at line 426 of file tester.h.

Constructor & Destructor Documentation

KUnitTest::TestResults::TestResults ( )
inline

Definition at line 431 of file tester.h.

virtual KUnitTest::TestResults::~TestResults ( )
inlinevirtual

Definition at line 433 of file tester.h.

Member Function Documentation

virtual void KUnitTest::TestResults::addDebugInfo ( const QString &  debug)
inlinevirtual

Add some debug info that can be view later. Normally you do not need to call this.

Parameters
debugThe debug info.

Definition at line 451 of file tester.h.

virtual void KUnitTest::TestResults::clear ( )
inlinevirtual

Clears the test results and debug info. Normally you do not need to call this.

Definition at line 437 of file tester.h.

QString KUnitTest::TestResults::debugInfo ( ) const
inline
Returns
The debug info that was added to this Tester object.

Definition at line 458 of file tester.h.

QStringList KUnitTest::TestResults::errorList ( ) const
inline
Returns
Details about the failed tests.

Definition at line 479 of file tester.h.

int KUnitTest::TestResults::errors ( ) const
inline
Returns
The number of failed tests.

Definition at line 464 of file tester.h.

int KUnitTest::TestResults::passed ( ) const
inline
Returns
The number of passed tests.

Definition at line 476 of file tester.h.

QStringList KUnitTest::TestResults::skipList ( ) const
inline
Returns
Details about which tests were skipped.

Definition at line 488 of file tester.h.

int KUnitTest::TestResults::skipped ( ) const
inline
Returns
The number of skipped tests.

Definition at line 473 of file tester.h.

QStringList KUnitTest::TestResults::successList ( ) const
inline
Returns
Details about the succeeded tests.

Definition at line 491 of file tester.h.

int KUnitTest::TestResults::testsFinished ( ) const
inline
Returns
The number of finished tests.

Definition at line 461 of file tester.h.

QStringList KUnitTest::TestResults::xfailList ( ) const
inline
Returns
Details about tests that failed expectedly.

Definition at line 482 of file tester.h.

int KUnitTest::TestResults::xfails ( ) const
inline
Returns
The number of expected failures.

Definition at line 467 of file tester.h.

int KUnitTest::TestResults::xpasses ( ) const
inline
Returns
The number of unexpected successes.

Definition at line 470 of file tester.h.

QStringList KUnitTest::TestResults::xpassList ( ) const
inline
Returns
Details about tests that succeeded unexpectedly.

Definition at line 485 of file tester.h.


The documentation for this class was generated from the following file:
  • tester.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUnitTest

Skip menu "KUnitTest"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal