ExtentReporter test.info

I’m using Extent Reporter to generate the reports for my tests. Trying to work out how I can add a description to my tests? I can use

test.info(“test info”);

What do I need to add to generate the test object?


I realised you just have to create the test at the start of your test:

ExtentTest test = extent.createTest(“IDK”, “A description”);
test.info(“This is information”);