Skip to content

Commit

Permalink
print out phpunit loc
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Sep 25, 2012
1 parent f42eb37 commit d8b1276
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -10,7 +10,10 @@ _tests must be logically independent!_

Usage
-----
```php paraunit.php -p[PROCESSES] --PATH=TEST_PATH/TEST_GLOB```
Install using composer. Then do this:

```vendor/bin/paraunit -p[PROCESSES] --PATH=TEST_PATH/TEST_GLOB
--PHPUNIT=PATH/TO/PHPUNIT```

Todo
----
Expand Down
4 changes: 3 additions & 1 deletion bin/paraunit
Expand Up @@ -190,7 +190,7 @@ $PHPUNIT = dirname(__FILE__).'/../../../bin/phpunit';
function main($argv)
{
global $PHPUNIT;
$usage = "Usage: php paraunit.php -p[NUM_PROCESSES] --path=TEST_PATH/TEST_GLOB --phpunit=PATH/TO/PHPUNIT\n";
$usage = "Usage: paraunit -p[NUM_PROCESSES] --path=TEST_PATH/TEST_GLOB --phpunit=PATH/TO/PHPUNIT\n";
if (!isset($argv[1]) || !$argv[1])
die($usage);

Expand All @@ -211,6 +211,8 @@ function main($argv)
if ($PHPUNIT != 'phpunit' && !is_file($PHPUNIT))
die("Couldn't find phpunit at '$PHPUNIT'\n");

echo "Using phpunit at $PHPUNIT...\n";

//if ($opts['path'][0] != '/')
//$opts['path'] = getcwd().'/'.$opts['path'];

Expand Down

0 comments on commit d8b1276

Please sign in to comment.