testng-team / reportng

An HTML/XML reporting plugin for TestNG
https://testng.org/reportng/
Apache License 2.0
14 stars 6 forks source link

How to integrate Report NG with jenkins? #11

Closed aliasgerkw closed 4 years ago

aliasgerkw commented 4 years ago

Or it will be same as default Test NG report works it will automatically take ReportNG reports as Test Results?

krmahadevan commented 4 years ago

You don't need to do anything extra for you to be able to generate ReportNG reports (since its added via Service Providers). You should be able to find the ReportNG reports in the target/surefire-reports/

aliasgerkw commented 4 years ago

My query was related to Jenkins Integration though. Do I need to add any new plugin there to enable to see this report?

krmahadevan commented 4 years ago

@aliasgerkw - There is no plugin etc for this. Whatever mechanism you are using to have Jenkins show the default HTML report that comes baked into TestNG, you would use the same approach to show this report as well.

Not every report needs a Jenkins plugin for it to be rendered. Its true in the case of sophisticated reporting mechanism such as allure because, the html gets generated in runtime. But that's not the case with ReportNG.

aliasgerkw commented 4 years ago

Thanks @krmahadevan for the clarification