# Improve Integration Tests coverage

**URL:** <https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260>\
**Category:** GSOC\
**Tags:** gsoc2025\
**Created:** [March 4, 2025, 11:45pm UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260 "2025-03-04T23:45:26Z")\
**Posts on this page:** 7\
**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:** [March 4, 2025, 11:45pm UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/1 "2025-03-04T23:45:26Z")

</div>

Hey everyone,

I’m interested in the GSoC 2025: Improve Integration Test Coverage project.

### Project Overview

Integration tests are essential for ensuring smooth interactions between different service layer components. While we already have a variety of integration tests in place, this project aims to increase test coverage to at least 60% by improving existing tests and adding new ones for critical services.

### Current Testing Approach

We follow a dataset-driven testing strategy, ensuring realistic scenarios by using actual data instead of mocks. Our tests:

- Utilize datasets for setup and validation.
- Manage test state with executeDataSetWithStateManagement to maintain consistency.
- Measure and track coverage with JaCoCo, ensuring improvements are data-driven.

Currently, integration tests cover various service layer functionalities, including CRUD operations, data retrieval, business logic validation, and error handling. Expanding this coverage will enhance the reliability and stability of the system.

### Objectives

1. Expand test coverage to at least 60% for critical service layer components.
2. Ensure comprehensive coverage of core functionalities while maintaining test efficiency.
3. Improve dataset management and test state handling for more reliable integration tests.

@Herbert @Moses_Mutesasira @caseyi @calebslane @community

---

<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:** [March 5, 2025, 12:08am UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/2 "2025-03-05T00:08:45Z")

</div>

For any one interested in finding more about this project you can visit  
[OpenELIS Global Gsoc 2025 Final list](https://uwdigi.atlassian.net/wiki/spaces/OG/pages/321224705/GSoC+2025)  
[OpenELIS Global Development Environment Setup Instructions](https://uwdigi.atlassian.net/wiki/spaces/OG/pages/240844805/Dev+Environment+Setup+Instructions)  
[Current Integration Tests](https://github.com/DIGI-UW/OpenELIS-Global-2/tree/develop/src/test/java/org/openelisglobal)

---

<div class="post-metadata">

**Author:** ![Adarsh\_Samani](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/adarsh_samani/32/592_2.png) [@Adarsh\_Samani](https://talk.openelis-global.org/u/Adarsh_Samani)\
**Post date:** [March 13, 2025, 6:43pm UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/3 "2025-03-13T18:43:58Z")

</div>

Hey @Agaba_Derrick_Junior I am Adarsh and interested in working on this project to maybe we can collaborate and increase efficiency together

---

<div class="post-metadata">

**Author:** ![Adarsh\_Samani](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/adarsh_samani/32/592_2.png) [@Adarsh\_Samani](https://talk.openelis-global.org/u/Adarsh_Samani)\
**Post date:** [March 13, 2025, 6:45pm UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/4 "2025-03-13T18:45:15Z")

</div>

Can you tell me in which IDE are you running your test and what command you are using to test the integration test code?

---

<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:** [March 14, 2025, 7:20am UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/5 "2025-03-14T07:20:41Z")

</div>

hello @Adarsh_Samani I use VS code and intellij but preferably I use intellij mostly  
I would advise if you are interested in the same project you create a different thread for work visibility !

---

<div class="post-metadata">

**Author:** ![Adarsh\_Samani](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.openelis-global.org/adarsh_samani/32/592_2.png) [@Adarsh\_Samani](https://talk.openelis-global.org/u/Adarsh_Samani)\
**Post date:** [March 14, 2025, 11:37am UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/6 "2025-03-14T11:37:40Z")

</div>

I also want to use intellij, can you tell me what commands you use to check the tests

---

<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:** [April 3, 2025, 6:46am UTC](https://talk.openelis-global.org/t/improve-integration-tests-coverage/1260/7 "2025-04-03T06:46:10Z")

</div>

Hey everyone,

A few days ago, as part of the preparation during the Community Bonding Period, I reviewed the existing and newly added tests in our codebase. As part of this process, I

- Generated a Jacoco report, reviewed it, and added more test methods to existing service tests that were missing coverage.
- Introduced additional assertions in test methods involving databases to reduce log clutter and make debugging easier.
- Cleaned up existing tests by removing unnecessary comments, improving readability, and making the codebase look more professional.

All these improvements have seen an enhancement in integration Tests coverage in OpenElis

> **[GitHub - DIGI-UW/OpenELIS-Global-2: This is the core repo for OpenELIS global v3](https://github.com/DIGI-UW/OpenELIS-Global-2?tab=readme-ov-file)**
>
> This is the core repo for OpenELIS global v3
