Shreya Bhat
Shreya Bhat

Reputation: 341

Is there a common reporter class for both JUnit and TestNG?

I have 2 frameworks, one with Junit and one TestNG. I need a common custom report for both the frameworks. I don't want to be maintaining code in both frameworks to retain the same format of reports for both.

Anyone know a common way to have custom reports for JUnit and TestNG?

Upvotes: 0

Views: 163

Answers (1)

tim-slifer
tim-slifer

Reputation: 1088

TestNG can be configured to output reports in the same format as JUnit, thereby unifying the reporting of your two frameworks.

If you're looking for something third-party, I'd recommend ExtentReports, which is a bit more friendly to QA teams and with the logger style syntax, is very easy to implement in your tests.

Upvotes: 1

Related Questions