>> You are probably well aware of that, but TestNG is not working at all
>> with the latest snapshot available
>> Gradle 0.9-20100224120231+0300
> The TestNG samples are working fine, so it's not completely broken.
>
>> I have a test project with failing tests and it passes (and I can't
>> see trace of tests execution anywhere).
> The output of gradle -i or gradle -d should list the tests that are being
> executed. And build/reports/test should have a bunch of results in it. Are
> you seeing any of this stuff?
It works as long as you don't mess with listeners. This will work:

test {
        useTestNG()
}

but this does not:

apply id: 'java'

repositories {
        mavenCentral()
        mavenRepo urls: 'http://download.java.net/maven/2/'
}

dependencies {
        testCompile 'org.uncommons:reportng:1.0'
        testCompile 'org.testng:testng:5.10:jd...@jar'
}

test {
        useTestNG()
        options.listeners <<
'org.uncommons.reportng.HTMLReporter,org.uncommons.reportng.JUnitXMLReporter'
        useDefaultListeners = false
}

I have tried various options to make it work (e.g. to omit "options.")
with no success. I looked at
http://docs.codehaus.org/display/GRADLE/Gradle+0.9+Breaking+Changes#Gradle0.9BreakingChanges-TestNG
but it didn't help.

Was there some syntax change in 0.9 that is not (good enough)
explained on the wiki page or are listeners not implemented yet?

I used the latest snapshot: Gradle 0.9-20100225000443+0300

--
Regards / Pozdrawiam
Tomek Kaczanowski

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to