Backend Tools

Install

Install the tools described in this section:

composer install
npm install

Lint

Validate your PHP code for consistence:

grunt phpcpd
grunt phpcs
grunt phpmd

Unit Testing

Run the unit testing suite:

grunt test-unit

Run the unit testing suite in parallel:

grunt test-unit-parallel

Run the unit testing with mutation:

grunt test-unit-mutation

Run the unit testing suite against your MSSQL database:

DB_URL=mssql://sa:test@127.0.0.1/test grunt test-unit

Run the unit testing suite against your MySQL database:

DB_URL=mysql://root:test@127.0.0.1/test grunt test-unit

Run the unit testing suite against your PostgreSQL database:

DB_URL=postgres://postgres:test@127.0.0.1/test grunt test-unit

Acceptance Testing

Start local development server:

grunt start-server

Start local selenium hub:

grunt start-hub

Run the acceptance testing suite:

grunt test-acceptance

Run the acceptance testing suite in parallel:

grunt test-acceptance-parallel
Edit on GitHub