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.
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 can be run using the following command:
composer run tests:integration
Integration tests are located in the tests/integration directory.
Cypress is used for end-to-end testing. To run the Cypress tests, follow these steps:
- Install the necessary dependencies:
npm install
- Open the Cypress test runner:
npm run cypress:open
- 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.