2 thoughts on “How to run unit test for specific java package?”

  1. Dharmesh Sir, this is still not working for me :(.

    Keeps failing with

    java.lang.Exception: Test class should have public zero-argument constructor

    1. Vinit, Thanks for reading post.
      I will admit that it worked in my case with my TestNG and JUnit test classes.

      Coming on to your error. It clearly says there is need of default constructor, however sometime solution is not what exactly error says.
      Check similar problem with Ant here.

Leave a Reply

Your email address will not be published. Required fields are marked *