How can I run a Test

Hallo guys this may be a basic question but hope i will get some help. I am working on on this ticket https://issues.openmrs.org/browse/RATEST-93?filter=-4 But how can I run a specific test for example in this ticket i need to run the Test @odorajonathan @jwnasambu @gracebish @herbert24

@suubi7 have you tried running

mvn clean install or mvn clean test"?

@tendomart For a specific test

What do you mean ?

https://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html

As an example: mvn -Dtest=PatientServiceTest test

1 Like

@dkayiwa Thank you

@tendomart the mvn clean test command runs all the tests but I wanted to run only one test For my ticket

1 Like

Alternatively you can run your test using your IDE

You can read about running junit tests,i see so many resources online with that information

1 Like

Perfect . Hope you were cleared by Daniel.

@tendomart Yess