BoltCM

Sophisticated, Lightweight and Simple

Jump to docs navigation
Edit on GitHub

Note: You are currently reading the documentation for Bolt 3.0. Looking for the documentation for Bolt 3.2 instead?

Core development » Related HOWTOs » Running Unit & Acceptance Tests

Unit tests

For running unit tests you need PHPUnit, this can be run from the require-dev install of PHPUnit that comes with Bolt:

    $ composer install --dev 

After installing, you can run the unit test suite by running:

    $ php vendor/bin/phpunit 

This can now also be done by using app/nut:

    $ php app/nut tests:run

Acceptance Tests

For running acceptance tests you need CodeCeption, this can be run from the require-dev install of CodeCeption that comes with Bolt:

    $ composer install --dev 

After installing, you can run the acceptance test suite by running:

    $ php vendor/bin/codecept build
    $ php vendor/bin/codecept run

Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.
Spotted a typo, or have something to add? Edit this page on GitHub.