The issue is that all Test classes should have @Test annotations, when gradle doesn't recognise it as a Test class then it throws that error.

http://stackoverflow.com/questions/14814837/gradle-test-fails-with-error

By doing this you force Gradle not to scan for it, if your test class name ends with Test you should also add it as a new include line.