Sydney

Class SimpleTestResults

Object
   |
   +--TestResults
         |
         +--SimpleTestResults

class SimpleTestResults
extends TestResults

Defined in simple_test_results.js


Constructor Summary
SimpleTestResults ()
            Creates an object to collect the results of a test run so that the errors and failures can be visited after the fact.
 
Method Summary
 void addError(<Test> test, <Object> error)
           Adds a test that caused an error to the set of test results.
 void addFailure(<Test> test, <Object> error)
           Adds a test that failed to the set of test results.
 int getErrorCount()
           Returns the number of tests that caused errors.
 ListIterator getErrorIterator()
           Returns an iterator on the list of tests that errored out.
 int getFailureCount()
           Returns the number of tests that failed.
 ListIterator getFailureIterator()
           Returns an iterator on the list of tests failed.
 int getTestCount()
           Returns the number of tests that were run.
 void startTest(<Test> test)
           Increments the test count that is returned from getTestCount().

Constructor Detail

SimpleTestResults

function SimpleTestResults()
Method Detail

addError

void addError(<Test> test, <Object> error)

addFailure

void addFailure(<Test> test, <Object> error)

getErrorCount

int getErrorCount()

getErrorIterator

ListIterator getErrorIterator()

getFailureCount

int getFailureCount()

getFailureIterator

ListIterator getFailureIterator()

getTestCount

int getTestCount()

startTest

void startTest(<Test> test)

Sydney

SourceForge.net Logo