How to add TestNG method descriptions in ReportNG Surefire reports?

1.4k 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 answers

0
Dan Dyer 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.