Running Automation Tests
A primary goal of the OpenBoxes project is increasing our automation test coverage. Doing so not only gives us more confidence that the application is working correctly, but also makes it easier for us to trust that a new change won't break existing functionality.
If you're interesting in writing new automation tests but are unsure where to start, feel free to reach out to us on Slack, and we can help you pick a feature to test.
Frontend Tests
To run frontend unit tests:
npm test
Backend Tests
Our current backend test coverage is:
To run backend unit tests:
grails test-app -unit
For instructions on how to run backend API tests, see the integration test README file in the openboxes repository.
End-To-End Tests
We have an end-to-end (E2E) test suite written in Playwright. These tests run against a live, deployed environment and are meant to simulate real user behaviour.
See the e2e repository for instructions on how to contribute.
Last updated
Was this helpful?