Create a behat.xml file in your config directory. It should contain the following settings:
<?xml version="1.0" encoding="UTF-8"?> <rogo> <website>http://localhost:8000</website> <db_database>behat_database_schema_name</db_database> <db_user>username</db_user> <db_password>password</db_password> <data>path_to_behat_user_data</data> <faildump>path_for_screenshots_of_failures</faildump> </rogo> |
You will need to install composer.phar into the root rogo directory manually from https://getcomposer.org/download/ |
It is also possible to configure behat using the main Rogo config using the following settings:
|
Start up rogo docker
docker-compose -f docker-compose.yml -f db.yml -f expose.yml -f selenium.yml up -d |
Create a behat.xml file in your config directory. It should contain the following settings:
<?xml version="1.0" encoding="UTF-8"?> <rogo> <website>http://web:8003</website> <db_database>behat_database_schema_name</db_database> <db_user>username</db_user> <db_password>password</db_password> <data>path_to_behat_user_data</data> </rogo> |
... ... extensions: Behat\MinkExtension: base_url: 'http://web:8003' goutte: null selenium2: browser: chrome wd_host: 'selenium:4444/wd/hub' |
5. Run the following command to run the test suite: vendor/bin/behat --config <rogo_root_directory>/testing/behat/config/behat.yml
We can probably set things up so that our tests will run automatically in the cloud on something like: https://travis-ci.com/