@Override
    public void afterAll(ExtensionContext context) {
        /*
        * this writes the entire report after each test class. This sucks but I don't think there is
        * anywhere else I can hook into the lifecycle of the end of all tests to write the report.
        */
        extent.flush();
    }
This creates the Extent report and manages the test lifecycle

@author Richard Tingle (aka richtea)
jme3-screenshot-tests/src/main/java/org/jmonkeyengine/screenshottests/testframework/ExtentReportExtension.java