Add the following lines to the end of your code:
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.classname", "org.apache.jmeter.report.dashboard.HtmlTemplateExporter");
JMeterUtils.setProperty("jmeter.reportgenerator.exporter.html.property.output_dir","report-output/dashboard");
ReportGenerator generator = new ReportGenerator("index"/Path/results.html"jtl", null);
generator.generate();
And upon the next execution you will see the HTML Reporting Dashboard under report-output/dashboard
folder
More information: