CameronWills/OEUnit — pull request #2 by msabbott (2014-01-15 14:34:25+00:00)
Title: Count Number of Tests & Add JUnit XML format reporting to OEUnit

Hi Cameron,

I'm making this pull request to introduce 2 recent changes I have implemented, and would like to get back into the main release, if possible.

Thanks,
Mark

Change 1
=======
Count the number of tests present in a Test Suite result (TestClassResult)

- This is not the same as the number of child items held in the List object, as this does not count the number of child items in that list - e.g. A Test Suite runs two test classes, one with 3 tests and the second with 4 tests. Using TestClassResult:ResultCount will return 2 (for the two test classes), the new "CountTests" functionality will return 7.

Change 2
=======
Implement a JUnit XML Reporter

- In order to get the output to work with Continuous Integration tools, a report of the results in JUnit format is almost a necessity.
- I have implemented a base reporting class, called "OEUnitReporter", and derived a child class called "JUnitReporter".
- Outputting the results to a report file should then be a case of performing the following:

```
DEFINE VARIABLE reporter AS OEUnit.Reporters.JUnitReporter NO-UNDO.
reporter = NEW OEUnit.Reporters.JUnitReporter(INPUT "output.xml").
reporter:Report(runner:Results).
```

**N.B.** This functionality is dependent on Change 1.