HTML/XML reports generated from running JUnit tests show duration only for the test methods as well. Overall class/package/project duration is also calculated based on test methods. There is no way to find out time spent in BeforeClass and AfterClass.
I’ve raised GRADLE-3247 for this.
Thanks for the report.