GSoC 2023: Enhancing Component Test Coverage and Quality for OpenMRS3 Project updates and discussions

Hello Everyone,

The fourth week of coding Period has been completed and I am excited to provide updated on the project progress during these four weeks. I was working on fixing the existing tests which were getting skipped and had also created an epic for that. I had completed the epic but found that we are left with one more component which tests are getting skipped i.e. identifier-input component. I created another issue for this. Currently this is in progress and getting hard time in fixing these tests. This is the only component left from the epic whose PR is not ready for review yet. Other than that I have two PR which are under review. The PR Links are:-

One PR I got merged for fixing the patient-registration-validation component. Test for this component was integration tests. But after the suggestion of @piumal1999 I changed it to unit tests. This was all for the update for fixing the skipped tests. Let’s move to the next step i.e. the MSW setup.

We are not going to use the MSW you can check this conversation for the reasoning.

Now the next step is to write the new tests. For this I have decided to go by each micro-frontend one by one. I have started working on writing the new tests for the esm-patient-registration-app and created the epic for this. You can check the epic here. I have written tests for the one of the component named field.component.tsx and written all the tests but one of them is failing due to some missing mock values. I have created draft PR for this also. PR link:-

I will work on writing new tests for esm-patient-registration-app throughtout this week.

Thank you for your support. Keep supporting and keep suggesting.