dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plugin Codeception fails to open reports.xml on execution

phizzl opened this issue · comments

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

  • You're running the latest release version of PHPCI.
  • Ensure that you're running at least PHP 5.3.6, you can check this by running php -v
  • You've run composer install --no-dev -o from the root of your installation.
  • You have set up either the PHPCI Worker, Daemon or Cron Job to run builds.

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