Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use paratest instead of paraunit

  • Loading branch information...
commit 0ba152e1e98d05454bcdbb903f585e8e6f016bfd 1 parent ed51daf
@jlipps authored
Showing with 9 additions and 9 deletions.
  1. +3 −3 README.md
  2. +5 −5 WebDriverDemoShootout.php
  3. +1 −1  composer.json
View
6 README.md
@@ -5,7 +5,7 @@ Your one-stop shop for everything Selenium + Sauce Labs + PHP. This is a set of
classes and libraries that make it easy to run your Selenium tests, either
locally or on Sauce Labs. You run the tests with [PHPUnit](http://phpunit.de).
-Sausage comes bundled with [Paraunit](http://github.com/jlipps/paraunit) (for
+Sausage comes bundled with [Paratest](http://github.com/brianium/paratest) (for
running your PHPUnit tests in parallel) and optionally
[Sauce Connect](http://saucelabs.com/docs/connect) (for testing locally-hosted
sites with Sauce).
@@ -96,11 +96,11 @@ Running tests in parallel
Running Selenium tests one at a time is like eating one cookie at a time. Let's
do it all at once! Try this:
- vendor/bin/paraunit -p2 --path=vendor/sauce/sausage/WebDriverDemo.php
+ vendor/bin/paratest -processes 2 --path vendor/sauce/sausage/WebDriverDemo.php --functional
(Or for Windows):
- vendor\bin\paraunit.bat --processes=2 --path=vendor\sauce\sausage\WebDriverDemo.php
+ vendor\bin\paratest.bat --processes 2 --path vendor\sauce\sausage\WebDriverDemo.php --functional
Now they'll finish twice as fast! (And if you get a [Sauce Labs
account](http://saucelabs.com/pricing), you can
View
10 WebDriverDemoShootout.php
@@ -79,11 +79,6 @@ public function testLoginFailsWithBadCredentials()
$this->assertTextPresent("Failed to login.", $this->byId('message'));
}
- public function testLogout()
- {
- $this->doRegister($this->randomUser(), true);
- }
-
public function testLogin()
{
$user = $this->randomUser();
@@ -91,6 +86,11 @@ public function testLogin()
$this->doLogin($user['username'], $user['password']);
}
+ public function testLogout()
+ {
+ $this->doRegister($this->randomUser(), true);
+ }
+
public function testRegister()
{
$user = $this->randomUser();
View
2  composer.json
@@ -15,7 +15,7 @@
"php": ">=5.3.0",
"sauce/sausage-installer": ">=0.1.0",
"phpunit/phpunit-selenium": ">=1.2.10",
- "jlipps/paraunit": ">=0.1.0"
+ "brianium/paratest": ">=0.1.5"
},
"suggest": {
"sauce/connect": ">=3.0"
Please sign in to comment.
Something went wrong with that request. Please try again.