- Git client (optionally you can download this repo directly from github)
- php v5.6+ with CURL extension
- Composer (global install) v1.5.0+
- Codeception v2.3.x (will be downloaded by composer)
- Java runtime (JRE) v8+
- Ubuntu - Tutorial
- Mac OS -
brew cask install java
- Firefox / Chrome Web Browser (latest)
- Selenium standalone server jar file v3.4+
- Web Driver for browsers
- geckodriver for Mozilla Firefox
- chromedriver for Google Chrome
- Clone the repo / Download the master branch
git clone https://github.com/ankurk91/codeception-travis-ci-example.git
cd codeception-travis-ci-example
- Install dependencies
composer install
- Run php inbuilt server, allow port 8000 in your firewall
php -S localhost:8000 -t app
- In a new terminal tab - Start selenium server
java -Dwebdriver.chrome.driver=/full/path/to/chromedriver -jar selenium-server-standalone-3.4.0.jar
- In a new terminal tab - Execute tests on Chrome
./vendor/bin/codecept run --env chrome
- You can also try Chrome in headless mode
./vendor/bin/codecept run --env chrome-headless
- In a new terminal tab - Start selenium server and keep it running
java -Dwebdriver.gecko.driver=/full/path/to/geckodriver -jar selenium-server-standalone-3.4.0.jar
- In a new terminal tab - Execute tests on Firefox
./vendor/bin/codecept run --env firefox
- Codeception
- Browser Testing on CodeShip
- GUI and Headless Browser Testing on Travis CI
- Chrome headless
- Dynamic configs using phpdotenv
MIT License