Gradle

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
To raise new issues or bugs against Gradle, please use forums.gradle.org.
  • Gradle
  • GRADLE-2326

Using suites with TestNGOptions causes Stacktrace

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Fixed
  • Affects Version/s: 1.0-rc-3
  • Fix Version/s: 1.2-rc-1

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)

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    GradleMethodMissing.txt
    24/May/12 2:08 PM
    15 kB
    Greg

Issue Links

Duplicates

Bug - A problem which impairs or prevents the functions of the product. GRADLE-2307 Configuration of TestNG options causes Stackoverflow when trying to use project / task properties.

  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

  • All
  • Comments
  • History
  • Activity
  • TeamCity
  • Commits
  • Source
  • Reviews
Hide
Permalink
Greg added a comment - 24/May/12 2:34 PM

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

Show
Greg added a comment - 24/May/12 2:34 PM Mark invalid: I moved the suite API outside of the brackets and did options.suites(file('<my suite>')) and its working

People

  • Assignee:
    Unassigned
    Reporter:
    Greg
Vote (0)
Watch (2)

Dates

  • Created:
    24/May/12 2:08 PM
    Updated:
    04/Jan/13 5:10 AM
    Resolved:
    19/Aug/12 7:51 PM
  • Atlassian JIRA (v5.0.3#729-sha1:bf569e4)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Gradle. Try JIRA - bug tracking software for your team.