[GRADLE-2326] Using suites with TestNGOptions causes Stacktrace Created: 24/May/12  Updated: 04/Jan/13  Resolved: 19/Aug/12

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

Type: Bug
Reporter: Greg Assignee: Unassigned
Resolution: Fixed Votes: 0

Attachments: Text File GradleMethodMissing.txt    
Issue Links:
Duplicate
Duplicates GRADLE-2307 Configuration of TestNG options cause... Resolved

 Description   

I'm running my TestNG tests off of Gradle and I've been trying to use the xml suite properties to use my xml with Gradle. However every time I try to run the suite API Gradle fails and gives me a stacktrace saying Method Missing

test{
useTestNG()
//other properties
options

{ suites(file('headless.xml')) }

}

The stack cause:

Caused by: java.lang.StackOverflowError
at org.gradle.api.tasks.testing.testng.TestNGOptions.methodMissing(TestNGOptions.groovy:204)



 Comments   
Comment by Greg [ 24/May/12 ]

Mark invalid: I moved the suite API outside of the brackets and did options.suites(file('<my suite>')) and its working

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