JUnitPerf icon indicating copy to clipboard operation
JUnitPerf copied to clipboard

would activeReporters = Collections.singletonList(REPORTER); can reporter be unique to each class rather than one report for all..

Open nagkumar opened this issue 2 years ago • 2 comments

public final class JUnitPerfInterceptorSuite extends JUnitPerfInterceptor
{
    private static final HtmlReportGenerator REPORTER = newHtmlReporter("suite_reporter.html");
    private static final DescriptiveStatisticsCalculator statisticsCalculator = new DescriptiveStatisticsCalculator();

    @Override
    public void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception
    {
	activeReporters = Collections.singletonList(REPORTER);
	activeStatisticsCalculator = statisticsCalculator;

	defaultRequirementsAnnotation = new JUnitPerfTestRequireme

Also, as active report is always the same as it is now..

why is it needed to call this once per each test

activeReporters = Collections.singletonList(REPORTER);

nagkumar avatar Jun 10 '23 04:06 nagkumar

Would you also consider not to have separate report that is parallel to unit test report, is it possible to include perf metrics within existing junit report

I definitely like this

nagkumar avatar Jun 10 '23 04:06 nagkumar

would consider not to change existing JUnit report with another file names etc..

can you consider to hook perf info within the existing junit report

image

nagkumar avatar Jun 10 '23 04:06 nagkumar