Creating a test folder for a module?

I’m new to OpenMRS and have solved a few tickets before. I’m trying to take up the issue: , which requires me to generate a test folder for the OAuth2 Module. Somehow I can’t seem to get around this step. I created a test file /omod/src/test/org/openmrs/web/controller/ . (manually created all the folders in between)

I pasted the following into my main pom:


and this into the api and omod poms:


as instructed here: But the test doesn’t get run at all. What am I missing?

Thank you.

I hope this article to be of some help :slight_smile:

Thank you for the resource. However, as the test isn’t even getting detected, I think I may need to point to the test somehow. I don’t know how to do that, unfortunately.

Can you raise a pull request with all your changes and we take a look?

1 Like

Here’s my PR: . Thank you for the offer!

Did you intentionally create the class named ModuleListControllerTest in a file named

Ah, that’s an embarrassing mistake… I’ve updated my repo. I still get the same issue though.

You are missing java in the path of your test. It should be …/src/test/java/org/openmrs/web/controller

Its working now! Thank you @dkayiwa!