Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

easyunit::TestResult Class Reference

#include <testresult.h>

List of all members.

Public Member Functions

 TestResult ()
virtual ~TestResult ()
int getTotalSuccesses () const
 Get the total number of successes registered by all test cases ran.
int getTotalErrors () const
 Get the total number of errors registered by all test cases ran.
int getTotalFailures () const
 Get the total number of failures registered by all test cases ran.
int getSuccesses () const
 Get the number of testcases ran that succeeded.
int getFailures () const
 Get the number of testcases ran that failed.
int getErrors () const
 Get the number of testcases ran that reported an error.
int getTestCaseCount () const
 Get the number of testcases in the TestCase list.
int getTestRanCount () const
 Get the number of tests.
int getTestCaseRanCount () const
 Get the number of testcases ran.
TestCasegetTestCases () const
 Get the TestCase list.
void setTestCases (TestCase *testCases, int testCaseCount)
 Set the TestCase list and the size of the list.
virtual void addResult (TestCase *testCase)
 Add a TestCase result.

Protected Attributes

int testCaseCount_
int testRanCount_
int testCaseRanCount_
int totalSuccesses_
int totalErrors_
int totalFailures_
int successes_
int errors_
int failures_
TestCasetestCases_


Constructor & Destructor Documentation

easyunit::TestResult::TestResult  ) 
 

virtual easyunit::TestResult::~TestResult  )  [virtual]
 


Member Function Documentation

virtual void easyunit::TestResult::addResult TestCase testCase  )  [virtual]
 

Add a TestCase result.

This is used by a TestCase after it has completed.

Parameters:
testCase TestCase that ran and contains results to add to global results

int easyunit::TestResult::getErrors  )  const
 

Get the number of testcases ran that reported an error.

Returns:
The number of testcases ran that reported an error.

int easyunit::TestResult::getFailures  )  const
 

Get the number of testcases ran that failed.

Returns:
The number of testcases ran that failed.

int easyunit::TestResult::getSuccesses  )  const
 

Get the number of testcases ran that succeeded.

Returns:
The number of testcases ran that succeeded.

int easyunit::TestResult::getTestCaseCount  )  const
 

Get the number of testcases in the TestCase list.

Returns:
The size of the TestCase list

int easyunit::TestResult::getTestCaseRanCount  )  const
 

Get the number of testcases ran.

Returns:
The number of testcases ran

TestCase* easyunit::TestResult::getTestCases  )  const
 

Get the TestCase list.

This list contains all TestCase registered and not only those that were ran.

Returns:
The TestCase list

int easyunit::TestResult::getTestRanCount  )  const
 

Get the number of tests.

Returns:
The number of tests ran that succeeded

int easyunit::TestResult::getTotalErrors  )  const
 

Get the total number of errors registered by all test cases ran.

This is the sum of all TestCase->getErrorsCount().

Returns:
The number of errors registered by all testcases.

int easyunit::TestResult::getTotalFailures  )  const
 

Get the total number of failures registered by all test cases ran.

This is the sum of all TestCase->getFailuresCount().

Returns:
The number of failures registered by all testcases.

int easyunit::TestResult::getTotalSuccesses  )  const
 

Get the total number of successes registered by all test cases ran.

This is the sum of all TestCase->getSuccessesCount().

Returns:
The number of successes registered by all testcases.

void easyunit::TestResult::setTestCases TestCase testCases,
int  testCaseCount
 

Set the TestCase list and the size of the list.

Parameters:
testCases TestCase list
testCaseCount size of the TestCase list


Member Data Documentation

int easyunit::TestResult::errors_ [protected]
 

int easyunit::TestResult::failures_ [protected]
 

int easyunit::TestResult::successes_ [protected]
 

int easyunit::TestResult::testCaseCount_ [protected]
 

int easyunit::TestResult::testCaseRanCount_ [protected]
 

TestCase* easyunit::TestResult::testCases_ [protected]
 

int easyunit::TestResult::testRanCount_ [protected]
 

int easyunit::TestResult::totalErrors_ [protected]
 

int easyunit::TestResult::totalFailures_ [protected]
 

int easyunit::TestResult::totalSuccesses_ [protected]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 4 09:51:25 2005 for EasyUnit by doxygen 1.3.8