testpress icon indicating copy to clipboard operation
testpress copied to clipboard

Unit Testing Watcher

Open pento opened this issue 7 years ago • 1 comments

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 avatar Jun 04 '18 01:06 pento

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

pento avatar Nov 04 '18 07:11 pento