pento / testpress

Tool for helping you get a WordPress Core test environment up and running.
GNU General Public License v2.0
68 stars 2 forks source link

Unit Testing Watcher #29

Open pento opened 6 years ago

pento commented 6 years ago

After grunt watch finishes doing it's thing, we should also automatically run any relevant PHP or JS unit tests for the saved files.

pento commented 6 years ago

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