Skip to content

Commit

Permalink
create coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zrnik committed Feb 12, 2023
1 parent cac2c63 commit e3dbf1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ RUN apt-get -y update && apt-get install -y libicu-dev zlib1g-dev libpng-dev
RUN docker-php-ext-configure intl

RUN docker-php-ext-install pdo pdo_mysql intl gd

ENV XDEBUG_MODE=coverage

RUN pecl install xdebug && docker-php-ext-enable xdebug
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ composer-update:
phpstan:
docker compose exec php /var/www/html/vendor/bin/phpstan --memory-limit=4G

coverage:
docker compose exec php /var/www/html/vendor/bin/phpunit --coverage-html ./temp/coverage-html --coverage-xml ./temp/coverage-xml
@echo ""
@echo "See coverage at: http://localhost:63342/MkSQL/temp/coverage-html/index.html"

tests: run-tests
run-tests:
docker compose exec database mysql -u root -proot -e "DROP DATABASE mk_sql_test"
Expand Down

0 comments on commit e3dbf1b

Please sign in to comment.