Last active
February 25, 2022 17:39
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 hidden or 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