Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
phizzl opened this issue Jun 8, 2017 · 0 comments
Open
4 tasks done

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

phizzl opened this issue Jun 8, 2017 · 0 comments

Comments

@phizzl
Copy link

phizzl commented Jun 8, 2017

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant