How to run unit tests for Bahmni

I am trying to add unit tests for this commit. However, I am not sure how to run the individual unit tests. Can someone help me out?

Hi @agrsoumya,

To run an individual test you have to use iit/ddescribe. iit to run single it method. ddescribe for single describe method. For more info please check jasmine documentation.

You can grunt test/ grunt karma:auto. grunt karma:auto will watch on the test directories and if any file change it will run tests.

1 Like