A TestResult collects the results of executing a test case.
It is an instance of the Collecting Parameter pattern.
The test framework distinguishes between failures and errors.
A failure is anticipated and checked for with assertions.
Errors are unanticipated problems like an Error concept. (not yet implemented)
Methods inherited from: Concept
| cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI |
|
| Label: | fFailures |
| Type: | Series |
| Is Static: | true |
| Is Hidden: | false |
| Is Multi: | false |
| Show Empty: | true |
It holds the failured Tests
| Label: | fErrors |
| Type: | Series |
| Is Static: | true |
| Is Hidden: | false |
| Is Multi: | false |
| Show Empty: | true |
It holds the errored Tests
| Label: | fListeners |
| Type: | Series |
| Is Static: | true |
| Is Hidden: | false |
| Is Multi: | false |
| Show Empty: | true |
It holds the listeners
| Label: | fRunTests |
| Type: | Integer |
| Is Static: | true |
| Is Hidden: | false |
| Is Multi: | false |
| Show Empty: | true |
Number of tests
| Label: | fStop |
| Type: | Logical |
| Is Static: | true |
| Is Hidden: | false |
| Is Multi: | false |
| Show Empty: | true |
Tests run stop flag
Constructs the instance
| Parameters: |
| $test : | Test concept |
| $t : | Error message |
|
Adds an error to the list of errors. The passed in error message
caused the error.
| Parameters: |
| $test : | Test concept |
| $t : | Fail message |
|
Adds a failure to the list of failures. The passed in fail message
caused the failure.
| Parameters: |
| $listener : | TestListener concept |
|
Registers a TestListener
Informs the result that a test was completed.
Gets the number of detected errors.
Returns an Series for the errors
Gets the number of detected failures.
Returns an Series for the failures
| Parameters: |
| $listener : | TestListener concept |
|
Unregisters a TestListener
Runs a TestCase.
Gets the number of run tests.
Gets the number of run tests.
Checks whether the test run should stop
Informs the result that a test will be started.
Marks that the test run should stop.
Gets the number of detected errors.
Gets the number of detected failures.
Returns whether the entire test was successful or not.