Skip to content

Testing

Koen Teuwen edited this page Dec 29, 2021 · 2 revisions

Prerequisites

Make sure you have followed the steps in Development Aids.

Additionally, you also need to copy some config files.

cp config/autoload/doctrine.local.development.php.dist config/autoload/doctrine.local.php
cp config/autoload/laminas-developer-tools.local.php.dist config/autoload/laminas-developer-tools.local.php
cp config/autoload/local.development.php.dist config/autoload/local.development.php

Running tests

To run tests you can use the Makefile as described in Development Aids. Simply run make runtest.

Alternatively, you can run tests using your IDE. If you use PhpStorm, the configuration for running tests is already in the Git repository. You can run them from the menu on the top-right.

Coverage

To check the current test coverage, run make runcoverage. The code coverage will be summarised in the coverage folder. You can explore the code coverage using your web browser by running firefox coverage/index.html.