Hey Sumit, JUnit is a very good unit testing framework and has very good features. But it also has some limitations like:
-
It cannot do dependency testing as opposed to TestNG framework.
-
It's not suitable for higher level testing i.e. for large test suites.
-
Group testing cannot be done in JUnit, which is available in TestNG.
-
Can't create HTML reports of test cases. You need to use ANT to create tests HTML reports.