Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.11 KB

DEVELOPMENT.md

File metadata and controls

56 lines (40 loc) · 1.11 KB

Documentation

Some documentation can be generated from the source code using phpDocumentor.

To generate the documentation, run the following command:

phive install phpDocumentor
composer run docs

The documentation will be generated in the docs directory.

Unit Tests

Project has a set of tests that can be run using PHPUnit.

To run the tests, run the following command:

composer install
composer run tests

To restore the project to its original state, run the following command:

composer install --no-dev

Integration Tests

Integration tests can be run using the following command:

composer run tests:integration

Integration tests are located in the tests/integration directory.

Cypress Tests

Cypress is used for end-to-end testing. To run the Cypress tests, follow these steps:

  1. Install the necessary dependencies:
npm install
  1. Open the Cypress test runner:
npm run cypress:open
  1. To run the tests in headless mode, use the following command:
npm run cypress:run

The Cypress tests are located in the cypress/e2e directory.