[GRADLE-1620] Gradle does not execute testng test classes with just a org.testng.annotations.Factory annotation Created: 16/Jun/11 Updated: 24/Jan/13 Resolved: 24/Jan/13
We have a number of test classes that use the org.testng.annotations.Factory annotation to provide the testcases:
These are not picked up by the gradle testng testcase scanner. (they are completely left out of the test classes that are run)
Workarounds are to include an additional @Test annotation on the class itself. Or set scanForTestClasses = false, and provide a proper include pattern.