Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 774 Bytes

TESTING.md

File metadata and controls

30 lines (21 loc) · 774 Bytes

Testing

phpunit

Run all unit tests with the following commands. Be sure you are running the full stack (docker-compose up) or the tests will fail since there is no database to connect to.

docker-compose up &
then
docker exec -it erdiko_users_php /code/scripts/ci/run-php-tests.sh
or
docker-compose run php /code/scripts/ci/run-php-tests.sh

Misc ci notes

cd scripts/dev
./install-dev.sh
cd ../../
docker-compose up -d

docker exec -it erdiko_users_php /code/scripts/ci/setup.sh
  cd /code
  composer update

docker exec -it erdiko_users_php /code/scripts/dev/install-dev.sh
docker exec -it erdiko_users_php /code/scripts/install-db.sh


or
docker-compose run php /code/scripts/install-db.sh