Dynamic tests

Dynamic tests

Hi,

I'd like to run test from a JSON configuration that contains the input and the expected values. Is there an elegant way to create the tests dynamically?

I tried to call the test method within module.setup, but that does not work. I can call test from a global loop. That works, but is not very elegant as I have to fiddle around with closure issues. 

Is there a goodoption I missed?

Thanks,
  Kris