Skip to content

Instantly share code, notes, and snippets.

@Nemo64
Last active February 25, 2022 17:39
Show Gist options
  • Save Nemo64/6a7e40721162214ed6a371010a8fc857 to your computer and use it in GitHub Desktop.
Save Nemo64/6a7e40721162214ed6a371010a8fc857 to your computer and use it in GitHub Desktop.
fastest shell script that uses symfony's simple-phpunit. description here: https://betterprogramming.pub/improve-phpunit-performance-by-parallelization-using-liuggio-fastest-ff0abc111078
#!/usr/bin/env sh
# run phpunit to trigger download in symfony
bin/phpunit --version
if [ $1 ]
then
find tests/ -name '*Test.php' \
| grep -i "$1" \
| vendor/bin/fastest -vv --no-errors-summary 'bin/phpunit {}'
else
find tests/ -name '*Test.php' \
| vendor/bin/fastest -vv --no-errors-summary 'bin/phpunit {}'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment