dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Plugin Codeception fails to open reports.xml on execution #1331

Open phizzl opened 7 years ago

phizzl commented 7 years ago

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

To help us better understand your issue, please answer the following.

Expected behaviour

When I run a build using the Codeception plugin and Codeception in v2.3 I expect that the generated report.xml can be read from the plugin.

Actual behaviour

The report.xml can't be found because the Codeception plugin is looking in the wrong directory for it. Since Codeception v2.3 the XML is stored in _output/report.xml

Steps to reproduce

Add a project with codeception support. Create the build. When the codeception plugin trys to read the report.xml an error message is been shown that the report.xml can't be read by file_get_contents

Environment info

Operating System: Ubuntu 16.04 PHP Version: 5.6.28 MySQL Version: 5.5.55

Logs or other output that would be helpful

I get an error message like

E_WARNING: file_get_contents(/tests/report.xml): failed to open stream: No such file or directory
Exception: Warning: file_get_contents(/tests/report.xml): failed to open stream: No such file or directory in /var/www/stage/project/ci/PHPCI/Plugin/Codeception.php line 146