Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 663 Bytes

development.rst

File metadata and controls

34 lines (19 loc) · 663 Bytes

Development

Unit tests rely on a mongo installation so all unit tests are ran through docker. To run all unit tests execute:

docker-compose run --rm php composer test

Running unit tests with code coverage requires you build the docker composer with XDEBUG=1

docker-compose build --build-arg XDEBUG=1

To change docker to a different php version

docker-compose build --build-arg PHP_VERSION=8.1

then run the unit tests as

docker-compose run --rm php composer test-coverage

Run phpcs as

docker-compose run --rm php composer cs-check src test config