[GRADLE-2527] Test class detection not working for custom Test tasks Created: 23/Oct/12  Updated: 04/Jan/13  Resolved: 01/Nov/12

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.3-rc-1

Type: Bug
Reporter: René Gröschke (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0

Attachments: Zip Archive test-detection.zip    


The attached archive includes a reproducable example. It seems that calling explicitly useJUnit causes a missconfiguraton of the testclassdetector. The testclassdetector points to the outputfolder of compileTestJava instead of the testClassesDir of the task. a workaround is to call useJUnit after the testClassesDir property of the task is set.

Generated at Wed Jun 30 12:24:23 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.