Skip to content

Commit

Permalink
📝 dockerized test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Jan 16, 2017
1 parent 9954b54 commit 8d5ea69
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ DOCKERIZED TESTING

Start test stack and enter PHP container

cd tests
docker-compose up -d
docker-compose run --rm php bash

Expand All @@ -71,12 +72,15 @@ Run a group of unit tests

Run phpunit directly

cd tests
docker-compose run --rm php vendor/bin/phpunit -v --group caching,db
docker-compose run --rm php vendor/bin/phpunit -v --exclude base,caching,db,i18n,log,mutex,rbac,validators,web

### Cubrid

docker-compose run --rm php vendor/bin/phpunit -v --group cubrid
cd tests
docker-compose -f docker-compose.cubrid.yml up -d
docker-compose -f docker-compose.cubrid.yml run --rm php vendor/bin/phpunit -v --group cubrid

### MSSQL

Expand All @@ -87,9 +91,10 @@ Run phpunit directly

Example commands

docker-compose run --rm sqlcmd -S mssql -U sa -P Mircosoft-12345 -i /app/schmunk42/yii2/tests/data/mysql.sql
cd tests
docker-compose -f docker-compose.mssql.yml run --rm sqlcmd -S mssql -U sa -P Mircosoft-12345 -i /app/schmunk42/yii2/tests/data/mysql.sql

Using a shell

docker-compose run --entrypoint sh --rm sqlcmd
docker-compose -f docker-compose.mssql.yml run --entrypoint sh --rm sqlcmd
$ sqlcmd -S mssql -U sa -P Microsoft-12345

0 comments on commit 8d5ea69

Please sign in to comment.