GSoC Week 07: Resolving Unit Test Issue

Manojlakshan
2 min readJun 21, 2024

--

Hi folks,

Welcome to my blog for Week 07 of my Google Summer of Code (GSoC) journey. This week I managed to resolve a key issue with the unit tests. Here’s a summary of what I achieved and what I’m currently working on.

The main challenge was that patient flag module project unit tests were not executing properly. After some investigation, I discovered that the problem stemmed from our use of TestNG. We had included TestNG in our dependencies, but we weren’t actually utilizing it, which led to an error requiring a test suite.

To fix this, I removed the unnecessary TestNG dependency. This change resolved the execution issue on `mvn build`, and unit tests started running smoothly.

Another important task was ensuring our unit tests run correctly in Java 17. For this, I had to add the XStream dependency specifically for Java 17.

Now that the unit tests are running without issues, my current focus is on updating the tests with actual data. This involves refining the test cases to ensure they accurately reflect real-world scenarios, improving the overall robustness and reliability of our tests.

Plan for week 08

  1. Update the unit test with real data
  2. Collect requirements for FHIR flag resource mapping

Stay tuned for more updates, and thank you for following along with my GSoC journey!

Thank you for the reading, Join me on this tech adventure! Follow my profile to stay updated on the cool world of technology and innovation. Your support means a lot, and I can’t wait to share more exciting stuff with you. Let’s stay connected for more insights and fun discoveries ahead!

Github: https://github.com/ManojLL

LinkedIn : https://www.linkedin.com/in/manoj-lakshan/

--

--