Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schmunk42 committed Jan 14, 2017
1 parent 3f63ced commit fb3afac
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,37 @@ $config['databases']['mysql']['password'] = 'changeme';
```


DOCKER
------
DOCKERIZED TESTING
------------------

WIP
*This section is under construction*

Start test stack and enter yii/test container
Start test stack and enter PHP container

docker-compose up -d
docker-compose run --rm test
docker-compose run --rm php bash

Run a group of unit tests

$ vendor/bin/phpunit -v --debug tests/framework/db

Run phpunit directly

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

### MSSQL

**experimental**

- needs 3.5 GB RAM, Docker-host with >4.5 GB is recommended for testing
- database CLI `tsgkadot/mssql-tools`

Example commands

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

Run unit tests
Using a shell

$ vendor/bin/phpunit -v --debug tests/framework/db
docker-compose run --entrypoint sh --rm sqlcmd
$ sqlcmd -S mssql -U sa -P Microsoft-12345

0 comments on commit fb3afac

Please sign in to comment.