mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 01:31:45 +01:00
1.2 KiB
1.2 KiB
Meritoo Common Library
Development-related information
Requirements
- Docker
- Your favourite IDE :)
Getting started
-
Build, create and start Docker's containers by running command:
docker-compose up -d -
Install packages by running command:
docker-compose run composer install
Tests
Prerequisites
Install required packages by running command: docker-compose run composer install.
Running tests
Simply & quick, without code coverage
Tests are running using Docker and php-cli service defined in docker-compose.yml. Example:
docker-compose exec php-cli phpunit --no-coverage
You can also run them in container. In this case you have to run 2 commands:
-
Enter container:
docker-compose exec php-cli bash -
Run tests:
phpunit --no-coverage
With code coverage
docker-compose exec php-cli phpunit
Other
Rebuild project and run tests by running command:
docker-compose exec php-cli phing