Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Unit testing app not inside fuel folder
  • Hi,
    My fuel project folder structure is a bit unconventional: /app
    /fuel
    /public
    oil I'm trying to add phpunit tests to /app/tests/ but they are not being run with the command 'php oil test'.
    I also tried copying /fuel/core/phpunit.xml to /app/phpunit.xml but 'php oil test' always reports: "Configuration read from /fuel/core/phpunit.xml" How can I make built in unit testing work in my setup? Thanks,
    Jakob
  • For unit tests to run in a modified environment you have to modify the paths in different places: - oil
    - core\bootstrap_phpunit.php
    - core\phpunit.xml I'm not sure you can override both core files with a corresponding version in app, you'll have to see.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion