Setting propperly the Acceptance Test of Codeception when using a Vagrant Virtual Machine

I was trying to realize some Acceptance test to my application. In order to do this some configurations should be done.

1. Download and run Selenium-Server

Download Page of Selenium-Server

Just run it with java -jar [SELENIUM-JAR]

2. Update the acceptance.suite.yml configuration file to add changing the url to the one that you use:

modules:
    enabled:
        - WebDriver
        - AcceptanceHelper
        - Laravel4
        - Asserts
        - FunctionalHelper
    config:
        PhpBrowser:
            url: 'http://vagrant.dev'
        WebDriver:
            url: 'http://vagrant.dev'
            browser: firefox
            window_size: 1024x768
            wait: 10

3. Buid codeception “codeception build”

4. Change the database configuration for the testing environment to use the remote database.

5. Enable the MySQL port and allow to pass it through the firewall, as grant permissions to the user from your IP.

Advertisements

One thought on “Setting propperly the Acceptance Test of Codeception when using a Vagrant Virtual Machine

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s