testpress
testpress copied to clipboard
Unit Testing Watcher
After grunt watch finishes doing it's thing, we should also automatically run any relevant PHP or JS unit tests for the saved files.
For now, tests can be run manually, by running:
cd ~/Library/Application Support/testpress/tools
docker-compose run --rm mysql mysql -u root -ppassword -e "create database wordpress_develop_tests" -h mysql
After that, PHPUnit can be run from the tools directory as:
docker-compose run --rm phpunit phpunit