|
Sydney | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TestResults | +--SimpleTestResults
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 |
function SimpleTestResults()
Method Detail |
void addError(<Test> test, <Object> error)
test
- the failed test
error
- the exception or error that caused the test to error out
void addFailure(<Test> test, <Object> error)
test
- the test that failed
error
- the exception or error that cause the test to fail. error
should nearly always be an instance of AssertionFailedError
.
int getErrorCount()
ListIterator getErrorIterator()
iterator.next()
will return instances of
TestFailure
.
int getFailureCount()
ListIterator getFailureIterator()
iterator.next()
will return instances of
TestFailure
.
int getTestCount()
void startTest(<Test> test)
getTestCount()
.
test
- the test that is being started.
|
Sydney | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |