An open API service indexing awesome lists of open source software.

https://github.com/lightsofapollo/php-bdd-demo

Demo of php with cucumber and selenium
https://github.com/lightsofapollo/php-bdd-demo

Last synced: 8 months ago
JSON representation

Demo of php with cucumber and selenium

Awesome Lists containing this project

README

          

# Setup

### Clone the demo repository.

`git clone git@github.com:michikono/php-bdd-demo.git`

### Install xcode command line utilities if you do not have them already

`xcode-select --install`

### Install Composer

`brew tap josegonzalez/homebrew-php`

`brew install josegonzalez/php/composer`

### install PHP55
`brew tap homebrew/dupes`

`brew tap josegonzalez/homebrew-php`

`brew install php55`

# the previous step will tell you HOW to update your CLI path, which is also outlined below!
#
# edit your ~/.bashrc file:
# ====== start .bashrc file ======
# Swapping from PHP53 to PHP54
# export PATH="$(brew --prefix josegonzalez/php/php53)/bin:$PATH"
export PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH"
# ======= end .bashrc file =======

# update your paths
source ~/.bashrc

# install rvm and ruby
\curl -sSL https://get.rvm.io | bash
rvm install ruby-2.1.0
rvm reload
bundle install

# setup auto-test functionality
gem install watchr
# event watcher for Linux/BSD
gem install rev
# event watcher for OSX
gem install ruby-fsevent

# navigate into folder
# install dependencies PHPUnit and PHPUnit_Selenium
composer install
# or composer update

# In a new tab: run the selenium grid script
./bin/selenium-hub.sh

# In another tab:
./bin/selenium-webdriver.sh

# turn on auto test-running (runs headless behat tests)
observr ./test.observr.rb

# Run behat tests
./bin/behat --verbose --profile headless
# or for the full browser test
./bin/behat --verbose