Edit on GitHub
Jump to docs navigation

Core development / Related HOWTOs / Running Unit & Acceptance Tests

Note: You are currently reading the documentation for Bolt 3.6. Looking for the documentation for Bolt 3.5 instead?

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
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.