Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You will require phpunit, which in turn has changed the installation method with since ubuntu 12.04. You can find more information on how to install phpunit with composer here: https://coderwall.com/p/88x20g/installing-phpunit-on-ubuntu-with-composer
  • Download and modify https://github.com/Islandora/tuque/blob/1.x/tests/phpunit.xml to have the credentials and URL of your Fedora: /var/www/sites/all/libraries/tuque/tests/phpunit.xml (don't forget the FEDORAPASS value)

    Code Block
    languagebash
    <phpunit>
      <php>
        <const name="FEDORAURL" value="http://localhost:8080/fedora"/>
        <const name="FEDORAUSER" value="fedoraAdmin"/>
        <const name="FEDORAPASS" value="wei9bo0eethooD"/>
      </php>
      <logging>
        <log type="coverage-html" target="../build/coverage" title="Tuque"
             charset="UTF-8" yui="true" highlight="true"
             lowUpperBound="35" highLowerBound="70"/>
        <log type="coverage-clover" target="../build/logs/clover.xml"/>
        <log type="junit" target="../build/logs/junit.xml" logIncompleteSkipped="false"/>
      </logging>
    </phpunit>
  • From your Tuque install directory run the test:

    Code Block
    languagebash
    # cd /var/www/drupal/sites/all/libraries/tuque
    # phpunit -c tests/phpunit.xml tests/
    Warning

    NOTE: Tuque should pass the majority of the tests. If you see partial failure your installation may still work for most part, however you may want to contact the support community for help so to ensure you get 100% pass.

...