parameters:
selenium:
browser: *chrome
browserUrl: http://localhost/sandbox/www
screenshotPath: %tempDir%/phpunit
screenshotUrl: http://localhost/sandbox/www
Tento soubor by měl být přímo v rootu modulu. Může vypadat například takto:
<?xml version="1.0" encoding="utf-8" ?>
<phpunit
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
colors="true"
>
<testsuites>
<testsuite name="CmsModule Test Suite">
<directory suffix="Test.php">./tests/selenium</directory>
</testsuite>
</testsuites>
</phpunit>
Selenium testy budeme tedy psát na cestě @myModule/tests/selenium
.
java -jar /usr/share/selenium-server/selenium-server-standalone.jar
phpunit
- kompletní testphpunit --filter LanguagePresenterTest
- aplikace filtru