Hi OpenELIS Community @Herbert @Agaba_Derrick_Junior @Moses_Mutesasira,
**UPDATE: Service layer test coverage + organization issues SOLVED!** ![]()
**What I Delivered (Milestone 2):**
**Fixed test organization** - Moved 3 patient service tests to proper structure:
src/test/java/org/openelisglobal/patient/service/
βββ PatientContactServiceTest.java (moved)
βββ PatientServiceTest.java (moved)
βββ PatientPhotoServiceTest.java (moved)
NEW ResultInventoryServiceTest - 6/6 tests passing:
@RunWithRunWith(MockitoJUnitRunner.@Mocklass)
@Mock ResultInvento@InjectMocksyDAO dao;
@InjectMocks ResultInventoryServiceImpl service;
- Tests: getData(), getResultInventoryById(), CRUD operations
- Fast: ~1.5s execution (no Spring context issues)
- Coverage: Service layer boost
**Verification Complete:**
mvn test -Dtest=β*ServiceTestβ β All tests PASS
mvn spotless:check β Code clean
mvn clean install -DskipTests β Build passes
## **Current Status:**
Issue: #2565 Service Layer Test Coverage + Organization
PR: #2566 feat(gsoc26): add ResultInventoryServiceTest + organize patient service tests
+101 lines (all tests)
All checks passing
Branch: feat/2565-gsoc26-service-layer-test-reorg
## **Previous Work (M1):**
feat(2345): add 19 validation provider tests (+2-3% coverage) by Rohanbhalerao875 Β· Pull Request #2561 Β· DIGI-UW/OpenELIS-Global-2 Β· GitHub - Validation Providers (19 tests, +2-3% coverage) - Awaiting review
Awaiting maintainer review
Community feedback requested:
- PR #2566 standards met?
- Folder reorganization OK?
- Ready to merge?
- M3 controller tests - good next target?
Thanks for guidance @Agaba_Derrick_Junior! ![]()
Rohan Bhalerao | Morgan Stanley | GSoC26 Contributor
GitHub | PRs