mercredi 26 août 2015

Nesting test runners

I am trying to find out whether and how it is possible to nest JUnit test runners, e.g. combine a GuiceJUnitRunner, a Parameterized and a HierarchicalcontextRunner.

To me, it seems that JUnit was not designed to achieve this easily, otherwise BlockJUnit4ClassRunner should have a method which passes the next Runner as an argument.

Someone also implemented a ParallelParameterized runner, which looks to me like combining Parallel and Parameterized was not easily possible.

When googling for "nested" and "JUnit", it comes up with lots of information for nested classes, but I'm looking for nesting Runners, not classes.

Aucun commentaire:

Enregistrer un commentaire