Hi all,

I'm getting a StackOverflow from the following code:



    tasks.test.useTestNG() { options ->

        options.excludeGroups 'broken'

        if (project.buildProps.testProfileType != 'integration') {
            options.excludeGroups.add('integration.dao')
        }

    }


The following output is repeated until the overflow occurs:

        23:06:53.062 [ERROR] [org.gradle.BuildExceptionReporter]     at
org.gradle.api.tasks.testing.testng.TestNGOptions.methodMissing(TestNGOptions.groovy:209)


The offending line appears to be the if statement inside the closure above.
Without that there is no overflow.

Any idea what I'm doing wrong?

Cheers,
Kevin

Reply via email to