Which is better JUnit or TestNG?
S.no | TestNG | Junit |
---|---|---|
1. | Junit and NUnit inspires this testing framework | Are a java library and an instance of xUnit architecture for Unit testing code chunks |
2. | Easier to use with the help of the new functionalities | Some complexities are there |
3. | An XML file is required to run the suite test | @Suite and @RunWith are required to run the suite test |
4. | Exception testing is available | It is available here as well |
5. | New innovation feature is available in Group test | No existence of any Group test here in JUnit |
BY Best Interview Question ON 17 Apr 2019