Closed pento closed 5 years ago
By moving PHPUnit and WP-CLI to a secondary file, this ensures they aren't unnecessarily run during the initial docker-compose up call.
docker-compose up
Fixes #88.
A simple test to confirm that PHPUnit isn't in the default docker config is to run:
cd ~/Library/Application Support/testpress/tools docker-compose run --rm phpunit phpunit
You should see ERROR: No such service: phpunit.
ERROR: No such service: phpunit
Running this command will actually run PHPUnit:
docker-compose -f docker-compose.yml -f docker-compose.scripts.yml run --rm phpunit phpunit
This PR also includes encoding: 'utf8' options on all of the Docker spawn() calls that were missing them. These should've been added in #85.
encoding: 'utf8'
spawn()
By moving PHPUnit and WP-CLI to a secondary file, this ensures they aren't unnecessarily run during the initial
docker-compose up
call.Fixes #88.
Testing
A simple test to confirm that PHPUnit isn't in the default docker config is to run:
You should see
ERROR: No such service: phpunit
.Running this command will actually run PHPUnit: