É importante rodar apenas os serviços
blog-app
eadmin-app
na primeira vez, para importar os dados de testes manualmente, pois o container que roda os testes de integração está junto nodocker-compose.yml
$ git clone https://github.com/zozfabio/rockbuzz-test.git
$ cd rockbuzz-test
rockbuzz-test$ composer --working-dir=rockbuzz-oauth2-server install
rockbuzz-test$ composer --working-dir=rockbuzz-post-api install
rockbuzz-test$ composer --working-dir=rockbuzz-blog install
rockbuzz-test$ composer --working-dir=rockbuzz-admin install
rockbuzz-test$ docker-compose build
rockbuzz-test$ docker-compose up -d blog-app admin-app
no serviço oauth2:
rockbuzz-test$ composer --working-dir=rockbuzz-oauth2-server update-schema
rockbuzz-test$ composer --working-dir=rockbuzz-oauth2-server insert-test-data
no serviço da API de posts:
rockbuzz-test$ composer --working-dir=rockbuzz-post-api update-schema
rockbuzz-test$ composer --working-dir=rockbuzz-post-api insert-test-data
Blog: http://localhost:8002
Admin: http://localhost:8003
Basta Rodar o container que executa os testes:
rockbuzz-test$ docker-compose run test