1) Biggest challenge or source of confusion when setting up/working with JUnit.
2) Tip or trick that you learned that might be of interest to share with others. This can be a resource that you found online (you should share info about the site, not just the address) or the solution that you discovered with regard to #1.
JUnit is a framework used to test programs or modules. It uses annotations for the same.
The biggest challenge with Junit is that you cannot generate HTML reports. Also it only works well for smaller test suites. So each test is executed with a different instance of the test class. So we can use ANT to generate reports.The individual XML files generated by JUnit can be combined and a report can be generated.Ant has a built in functionality called junit which can run the unit tests.
Make sure you have the optional.jar file in the classpath. Then just define the Ant task which will help you generate a Junit HTML report .
Get Answers For Free
Most questions answered within 1 hours.