f500 / future-ci

A Continuous Integration tool by Future500 B.V.
MIT License
3 stars 2 forks source link

Bork build if the Codeception report is empty #22

Closed mvriel closed 9 years ago

mvriel commented 9 years ago

It can happen that all builds fail and the codeception report.xml file does not contain valid XML (including an empty file). If this happens then the build currently passes because the result object is not marked as borked or failed.

With these changes I have added two mechanisms:

  1. if the XML file is empty or otherwise contains invalid XML then the Result is marked as borked
  2. If any parser throws an exception than the TaskRunner will also mark the build as borked.