Skip to content

Instantly share code, notes, and snippets.

@EdaCZ
Last active August 29, 2015 14:25
Show Gist options
  • Save EdaCZ/25f62da858a54844fc80 to your computer and use it in GitHub Desktop.
Save EdaCZ/25f62da858a54844fc80 to your computer and use it in GitHub Desktop.
Runner for Nette\Tester
#!/bin/sh
VARIABLE=${1:-./tests}
if [ "$2" = "-w" ]; then
echo "Watching dir\n"
./vendor/bin/tester --stop-on-fail -c /etc/php5/apache2/php.ini -p php -w $VARIABLE -w .
else
echo "Run once\n"
./vendor/bin/tester --stop-on-fail -c /etc/php5/apache2/php.ini -p php $VARIABLE
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment