The goal is to provide different variations of the very same test methods (just like parameterized testing). The problem is that the actual number of necessary test runs depends and is discovered on the go.
The original idea was to create subelements (children) of the test (using the description object of the test metthod addChild
).
When running the code Eclipse View shows that all the discovered and executed tests are placed under "Unrooted Tests". The tests are described using the description.getTestClass() method the test method's Description instance.
Does anyone can explain what is happening and if possible give a solution?
I extend the BlockJUnit4ClassRunner. Also by using Description.addChild
one adds a child.