https://github.com/brianium/paratest-selenium
An example of using ParaTest to speed up functional tests with Selenium2 and PHPUnit
https://github.com/brianium/paratest-selenium
Last synced: about 1 year ago
JSON representation
An example of using ParaTest to speed up functional tests with Selenium2 and PHPUnit
- Host: GitHub
- URL: https://github.com/brianium/paratest-selenium
- Owner: brianium
- Created: 2012-10-26T18:16:04.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-11T02:36:50.000Z (about 13 years ago)
- Last Synced: 2025-04-04T22:46:53.956Z (about 1 year ago)
- Language: PHP
- Size: 347 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Testing PHPUnit's PHPUnit_Extensions_Selenium2TestCase With ParaTest
====================================================================
This is an example of running Selenium Web Driver tests in parallel with [ParaTest.](https://github.com/brianium/paratest)
The tests use the Chrome browser to test the Backbone.js Todo app. Running on Ubuntu 12.04
with Chrome Version 22.0.1229.79 - the results were as follows:
Vanilla PHPUnit:

ParaTest Results:

2.25 times faster than PHPUnit alone on this test and this machine.
Setting Up
----------
### Get Selenium Server ###
You will need to make sure you have selenium server installed. Head over to [SeleniumHQ](http://seleniumhq.org/download/) and download the latest and greatest. To run the server run the jar like so:
`java -jar /path/to/selenium-server-standalone-2.25.0.jar`
### Install Dependencies Via Composer ###
All of the dependencies can be installed via composer.
`php composer.phar install`
This will install PHPUnit and ParaTest.
### Install Chrome Driver ###
These tests operate via the Chrome Driver. Installation is easy, and instructions for doing so can be found at the [Selenium wiki](http://code.google.com/p/selenium/wiki/ChromeDriver)
Running The Tests
-----------------
To run the tests using ParaTest run the following command (will read suite from phpunix.xml):
`vendor/bin/paratest -f`
To run the tests using phpunit alone run the following command:
`vendor/bin/phpunit`
For more information on ParaTest head over to the [repo](https://github.com/brianium/paratest).