Last active
February 25, 2022 17:39
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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