On Feb 26, 2009, at 2:50 PM, GaryMcWilliams wrote:


complete noob here trying to use gradle against a small project. Can get it all working except the testng tests. I searched the forum here, got some
hits against testng, but nothing that give a poor noob any real help!
Anyone offer any hints on getting my testNG tests to run?

Testng support is in trunk and will be released with 0.6 (In the first half of March). With 0.5 you need to declare ant testng tasks to use testng.

- Hans



- I note a reference to a plugin contributed for 0.5, but using
"usePlugin('testng')" does not get me anywhere.
- I also tried a useTestNG() that I came across somewhere (cannot find
reference now) but that fails also.


build.gradle:
usePlugin('java')

type = 'jar'

version = '1.0'
sourceCompatibility = 1.5
targetCompatibility = 1.5

dependencies {
        addMavenRepo()
        addFlatDirResolver('lib', new File(rootDir, 'lib'))
        compile ':log4j:1.2.12'
        testCompile 'org.testng:testng:5.8:jdk15'
}

running gradle test gives:
$ gradle test
:init
:resources
:compile
:testResources
:testCompile
:test
[ant:junit] Test play.CounterTest FAILED
[ant:junit] Test play.CounterUtilTest FAILED
[ant:junitreport] the file
d:\dev\jira-stuff\JiraPlay\build\test-results\TESTS-T
estSuites.xml is not a valid testsuite XML document

Build failed with an exception.
Run with -s or -d option to get more details. Run with -f option to get the
full
(very verbose) stacktrace.

Build file 'd:\dev\jira-stuff\JiraPlay\build.gradle'

Execution failed for task :test.
Cause: There were failing tests. See the report at
d:\dev\jira-stuff\JiraPlay\bu
ild\reports\tests.

BUILD FAILED

--
View this message in context: 
http://www.nabble.com/testng-tp22224495p22224495.html
Sent from the gradle-user mailing list archive at Nabble.com.


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

   http://xircles.codehaus.org/manage_email



--
Hans Dockter
Gradle Project lead
http://www.gradle.org





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

   http://xircles.codehaus.org/manage_email


Reply via email to