jzillmann/jmh-visualizer

Fails on file containing both parameterized and non-parameterized benchmarks

Closed this issue · 3 comments

Tries to get the value of params[0][1] when params is null

Do you have an json result you can share which reproduces this ?

Attached a test file. It seems the order is important - it fails when the non-parameterized results come after the parameterized

results.json.txt

Oh man, I'm really out of the code / mental model..
Anyway, I deployed a hack which should get you past the initial error. Please check it out (make sure it's version 0.9.6).

I think my code assumes that all tests within the class are homogenous (they use the same parameters, or not).
So to be safe I would advise to build your test classes that way!