Project Title : Enhancing Component Test Coverage and Quality for OpenMRS3
Primary Mentor : @piumal1999
Backup Mentor: @anjisvj
Student: @ayushmishra
Project Link: GSoC 2023: Enhancing component test coverage and quality for OpenMRS3
Overview
The main aim of the project was to improve the overall code quality of OpenMRS3 by enhancing the component test coverage. It was mainly focused on esm-patient-management repo. Good code coverage will ensure that the software is working as intended and prevent the bugs by detecting them earlier in the software development lifecycle. I have worked on patient-management repo and increased the coverage from 40% to 72%. We can work further to improve the coverage on this repo and then we can move to other repos like esm-patient-chart etc.
Initial Test Coverage
Current Test Coverage
Objectives
-
Improve the existing test of the patient-management-repo - completed
-
Write new test for the patient-management-repo - completed
-
Improve the code coverage for patient-management repo - completed
-
Improve the code coverage for patient-chart-repo - removed
Contributions
I primarily worked on the patient management repo
Issues
Pull Request
https://github.com/openmrs/openmrs-esm-patient-management/pull/667 merged ![]()
https://github.com/openmrs/openmrs-esm-patient-management/pull/707 merged ![]()
https://github.com/openmrs/openmrs-esm-patient-management/pull/709 merged ![]()
https://github.com/openmrs/openmrs-esm-patient-management/pull/748 InReview
Blog Post
https://medium.com/@ayushmishra2854/gsoc23-community-bonding-recap-26d0bf070a00
https://medium.com/@ayushmishra2854/week-01-coding-period-gsoc23-e1ea8112aa15
https://medium.com/@ayushmishra2854/week-02-gsoc23-with-openmrs-b565606b9524
https://medium.com/@ayushmishra2854/week-03-gsoc23-with-openmrs-686dd58866d8
https://medium.com/@ayushmishra2854/week-04-gsoc23-with-openmrs-217a9878df4c
https://medium.com/@ayushmishra2854/week-05-gsoc-23-with-openmrs-f290647f0665
https://medium.com/@ayushmishra2854/week-06-gsoc-23-with-openmrs-1071249d5312
https://medium.com/@ayushmishra2854/week-07-gsoc-23-with-openmrs-75d7ad3fdfc
https://medium.com/@ayushmishra2854/week-08-gsoc-23-with-openmrs-9daee5c48198
https://medium.com/@ayushmishra2854/week-09-gsoc-23-with-openmrs-d482b3d6557e
https://medium.com/@ayushmishra2854/week-10-gsoc-23-with-openmrs-65a07120f0a0
https://medium.com/@ayushmishra2854/week-11-gsoc-23-with-openmrs-bd381c454972
https://medium.com/@ayushmishra2854/week-12-gsoc-23-with-openmrs-e9ca87973bdc
Video Presentation
Talk Thread
Resources
Future Work:
While significant improvements have been made in the test coverage we can continue writing test for uncovered scenarios and components. We can move our focus to other repos as well like patient-chart etc. Further more we can do other type of testing like performance testing, load testing etc.
Thought on the GSoC
Participating in Google Summer of Code (GSoC) has been an enriching journey that has significantly enhanced my skills and understanding of open-source development. Over the course of the program, I had the privilege to work on a critical project aimed at elevating the component test coverage and overall quality of OpenMRS3. This project has helped me in understanding the bits of the whole O3 project and developed a base for my further contributions.
I want to thank my mentors Piumal and Anjula for their support and guidance. Also I would like to thank the whole OpenMRS community for giving this opportunity. I am really grateful to be a part of such an awesome community.


