TNG / junit-dataprovider

A TestNG like dataprovider runner for JUnit with many additional features
Apache License 2.0
246 stars 164 forks source link

DataProvider test appear under category "Unrooted test" in JUnit Eclipse plugin #7

Closed aaschmid closed 11 years ago

aaschmid commented 11 years ago

Using Eclipse JUnit plugin some test cases appear under the category "Unrooted tests" instead of the expected class name, see Unrooted Tests Eclipse JUnit

See the reproducer in com.tngtech.test.java.junit.dataprovider.DataProviderEclipseJUnitPluginUnrootedReproducerAcceptanceTest for more information.

aaschmid commented 11 years ago

Findings so far:

aaschmid commented 11 years ago

For a @Parameterized test using an equal "data provider" it is working because the JUnit Eclipse plugin just shows indices to distingish between the different test data such that the test will not be show as unrooted. This would also work for DataProviderRunnerbut it not really what I desired ...

aaschmid commented 11 years ago

Having a more precise look in a silent minute made clear that I missed the forest for the trees ... As the above screenshot shows the data simply changed because com.tngtech.java.junit.dataprovider.DataProviderRunner.computeTestMethods() was called multiple times :(