You need to pass H2 (database) consumer to the BenchmarkRule. The
charts are generated by the H2 consumer only (because it has
persistent history of runs). Check out source code (tests); for
example:
static final File dbFile = new File(RepeatedTestSlave.class.getName());
static final File dbFileFull = new File(dbFile.getName() + ".h2.db");
static final File chartsDir = new File("tmp-subdir");
private static H2Consumer h2consumer;
@Rule
public TestRule benchmarkRun = new BenchmarkRule(h2consumer);
@BeforeClass
public static void checkFile() throws SQLException
{
Common.deleteDir(chartsDir);
chartsDir.mkdir();
h2consumer = new H2Consumer(dbFile, chartsDir, null);
}
Dawid
> --
> You received this message because you are subscribed to the Google Groups
> "JUnitBenchmarks: Performance Benchmarking for JUnit4" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
junit-benchmar...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>