Repository navigation
Testing and quality
Home / Technical documentation / Developing CARLOS
A useful test checks a behavior someone relies on, not merely that a method runs. Start with the clinic task affected by the change, then choose the smallest automated check that would catch the failure. Some changes also need a browser check because the saved state or visible status is what matters.
A pure Java rule can use a unit test. Database behavior needs an integration test with isolated data. A change to staff workflow needs a browser check that enters through the same UI links a person uses and verifies the saved result, not just a success message. Use synthetic patients and accounts, and cover both allowed and denied access where permissions matter.
The current test suite is under src/test/ and uses JUnit Jupiter. The test guide documents local commands such as mvn test and focused test patterns. Browser checks under scripts/ cover appointments, charting, messaging, labs, prevention, prescribing, forms, and billing. The clinical browser-check guide explains their entry-point and database assertions. Run these commands only in an appropriate development environment.
SCREENSHOT NEEDED — DEV-TESTS-FOCUSED: Show a focused test command, test name, and pass or fail summary without secrets.
SCREENSHOT NEEDED — DEV-TESTS-BROWSER: Show the same behavior checked in a fictional patient’s browser view, including the saved result.
Record the tested branch and environment in the pull request. If a check cannot run, explain why and what manual verification remains; do not mark it passed.
CARLOS documentation · Using CARLOS · Technical documentation
All topics · Get help · Improve this page
© 2026 CARLOS Contributors. Documentation licensed under CC BY-SA 4.0, except where otherwise noted.
Getting started and everyday reference
Office staff
Clinical staff and doctors
Clinic managers and administrators
Technical overview · Reference