Reply to comment
Gradle 0.6 supports TestNG
Submitted by Tomek Kaczanowski on Wed, 05/20/2009 - 21:08Gradle 0.6 was released today ! Among other stuff Gradle now supports execution of TestNG tests.
[UPDATED 24.11.2009 check Gradle Cookbook for some TestNG tips&tricks]
Below I put the minimal build.gradle file that can be used to execute TestNG tests with Gradle. The user guide of Gradle is not complete yet, so this snippet can help you to start using Gradle with TestNG.
At the same time you can see here how concise Gradle's build files can be.
usePlugin('java')
repositories {
mavenCentral()
}
dependencies {
testCompile "org.testng:testng:5.8:jdk15@jar"
}
test {
useTestNG()
}
IMPORTANT - this works with Gradle 0.6. Gradle is evolving fast so check the documentation of the latest version because changes might be introduced.
P.S. Thx to G. Boissinot for tip on default values.
Links
- Gradle: http://gradle.org
- List of all changes in Gradle 0.6 can be found on JIRA.
- TestNG: http://testng.org

Recent comments
4 days 6 hours ago
4 days 9 hours ago
1 week 3 days ago
2 weeks 5 days ago
3 weeks 5 days ago
3 weeks 5 days ago
4 weeks 1 day ago
4 weeks 2 days ago
4 weeks 2 days ago
6 weeks 5 days ago