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
- Host: GitHub
- URL: https://github.com/lightsofapollo/php-bdd-demo
- Owner: lightsofapollo
- Created: 2011-09-16T03:10:32.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2014-02-25T05:30:20.000Z (over 12 years ago)
- Last Synced: 2024-12-27T15:12:44.001Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 31.2 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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