Why is TestNG better than JUnit?
TestNG has the ability to arrange test methods into Java groups. It runs unit tests using arguments passed into the test functions. The usage of Threads improves testing performance by reducing execution time. JUnit’s issue of not being able to run concurrent tests has been overcome.