Skip to content

Testing and quality

Michael Yingbull edited this page Sep 28, 2026 · 6 revisions

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.

Pick checks that match the change

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.

Related pages

Development environment · Contributing code

CARLOS documentation

All topics · Get help

Using CARLOS

Start here · Clinic workflows

Getting started and everyday reference
Office staff
Clinical staff and doctors
Clinic managers and administrators

Technical documentation

Technical overview · Reference

Running CARLOS

Install and configure
Maintain and troubleshoot

Developing CARLOS

Code, interfaces, and tests
Contribute and maintain releases

For everyone

Write and maintain the documentation

Clone this wiki locally