[GRADLE-2307] Configuration of TestNG options causes Stackoverflow when trying to use project / task properties. Created: 16/May/12  Updated: 04/Jan/13  Resolved: 09/Aug/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-rc-3
Fix Version/s: 1.2-rc-1

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

Issue Links:
Duplicated by GRADLE-2326 Using suites with TestNGOptions cause... Resolved
Duplicated by GRADLE-2331 StackOverflow in TestNgOptions when t... Resolved


The configuration closure for useTestNG() in the Test task does not allow the usage of project/task properties. The following example results in a stackoverflow because of trying to reference project.buildDir:


{ suites("$buildDir/reports/tests/testng-failed.xml") }


A fix for this is to refactor the missingmethod and missingproperty methods of TestNGOptions to throw a MissingProperty* / MissingMethodException instead of delegating to super.

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