How to add TestNG method descriptions in ReportNG Surefire reports?

1.5k Views Asked by At

I have Method descriptions provided in my scripts like this:

@Test(description = "Activity Note", dependsOnMethods = {"XZO720"})

How can i get this method description in my ReportNG Surefire reports?

1

There are 1 best solutions below

0
On

Currently ReportNG includes test descriptions as tooltips that show when you hover over the test name (as in this example report). If you want something different you would have to modify ReportNG's Velocity templates.