# Progress on Integration Test Coverage

**URL:** <https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616>\
**Category:** Development\
**Created:** [August 7, 2025, 10:45am UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616 "2025-08-07T10:45:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agaba\_Derrick\_Junior](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/agaba_derrick_junior/32/503_2.png) [@Agaba\_Derrick\_Junior](https://talk.openelis-global.org/u/Agaba_Derrick_Junior)\
**Post date:** [August 7, 2025, 10:45am UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616/1 "2025-08-07T10:45:27Z")

</div>

Hey Community,  
As part of our ongoing integration test effort, here’s the latest JaCoCo breakdown by component layer services, controllers, DAOs, and utilities. This will help us target the right gaps next.

This is the Overall Coverage Summary for the Integration Tests

 ![Jacoco](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/a4b755b52d10dacccc61bbc4dada36c97282fecf.png)

Below is the report showing our Progress in terms of Percentage

 ![Jacoco Report](https://canada1.discourse-cdn.com/flex030/uploads/openelisci/original/1X/44e3897d0a3f5600fe71e07453a7a4ae27fc9c09.jpeg)

**Coverage Summary by Category**

| Layer/Category | Covered | Total | Coverage % |
| --- | --- | --- | --- |
| **Service Classes** | 1,245 | 12,453 | **10.0%** |
| **Utility Classes** | 2,985 | 6,336 | **47.1%** |
| **Controller Classes** | 900 | 15,120 | **5.9%** |
| **DAO Classes** | 773 | 2,958 | **26.1%** |
| **Form/ValueHolders** | 1,680 | 5,332 | **31.5%** |
| **REST API Controllers** | 396 | 9,630 | **4.1%** |

We’ve made solid headway on this route, especially in service layer classes like `SamplePatientEntryServiceImpl``TestNotificationServiceImpl`. JaCoCo shows improving method and class coverage, but overall instruction/branch coverage remains low.

**Our next priority** is to **close the gaps in our service-layer test coverage** , with a sharp focus on **edge cases,** null values, invalid inputs, conditional branches, and exception paths. These areas carry the highest risk of failure in production, and covering them will significantly improve our instruction and branch coverage in JaCoCo. Since many of these service classes are already partially tested, we’ll get high value from finishing what we started. Once this layer is solid, we’ll shift attention to the **controller and REST API layers** , where many endpoints are still completely untested and need request/response validation coverage.

🙏 **Huge thanks** to everyone who’s contributed test cases, reviewed PRs, or helped debug failing scenarios. This progress reflects real teamwork and a shared commitment to improving quality. Every integration test added helps us build a more reliable and resilient system.  
@Ariho-Seth @segujja_joseph @ELAI @mherman22 @Adarsh_Samani @Moses_Mutesasira @tasksolver @aditya

Report by Jacoco and SonarQube

---

<div class="post-metadata">

**Author:** ![Ariho-Seth](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/ariho-seth/32/1278_2.png) [@Ariho-Seth](https://talk.openelis-global.org/u/Ariho-Seth)\
**Post date:** [August 7, 2025, 10:56am UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616/2 "2025-08-07T10:56:10Z")

</div>

Wowww! This is enlightening. Thanks @Agaba_Derrick_Junior

---

<div class="post-metadata">

**Author:** ![mherman22](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/mherman22/32/92_2.png) [@mherman22](https://talk.openelis-global.org/u/mherman22)\
**Post date:** [August 12, 2025, 5:44pm UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616/3 "2025-08-12T17:44:09Z")

</div>

How are service layer tests still at 10% 😃 I see we have about 10k tests to write for the service layer

---

<div class="post-metadata">

**Author:** ![Agaba\_Derrick\_Junior](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/agaba_derrick_junior/32/503_2.png) [@Agaba\_Derrick\_Junior](https://talk.openelis-global.org/u/Agaba_Derrick_Junior)\
**Post date:** [August 13, 2025, 9:45am UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616/4 "2025-08-13T09:45:12Z")

</div>

@mherman22 The 10% isn’t about the number of test cases we’ve written, it’s about the number of instructions and branches covered. Service classes are big and complex, so we all agree that we’ve written a decent number of tests, but they are still touching a small fraction of the logic. Many service methods have multiple conditional paths, error flows, and edge cases that we haven’t hit yet. That’s why the coverage number looks small despite the effort; each additional test that targets an untested path will make a much bigger impact going forward. And yes, the 10k tests estimate sounds about right if we want to exercise every branch and path in all our classes.

---

<div class="post-metadata">

**Author:** ![Ariho-Seth](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/ariho-seth/32/1278_2.png) [@Ariho-Seth](https://talk.openelis-global.org/u/Ariho-Seth)\
**Post date:** [August 16, 2025, 7:59pm UTC](https://talk.openelis-global.org/t/progress-on-integration-test-coverage/1616/5 "2025-08-16T19:59:04Z")

</div>

I like the eloquence here; I have surely also understood. because I had the same concern as @mherman22’s.
