--tests switch does only partly work

While writing test cases for GRADLE-3086 I wanted to only run the tests in ProjectLoadingIntegrationTest class. Because of that I run “./gradlew :integTest:integTest --tests org.gradle.integtests.ProjectLoadingIntegrationTest”, but it does not only execute the ProjectLoadingIntegrationTest tests, but also executes the UserGuideSamplesIntegrationTest tests. Maybe this has to do with the RunWith annotation, but that is just a guess.


We kind of know about this bug, but don’t fully understand it. AFAIK we’ve not been able to reproduce outside of this case.