【发布时间】:2016-11-21 09:34:42
【问题描述】:
我在 gradle 中创建了一个带有 testng 框架的项目,如何使用 gradle 在 testng 中执行测试套件,请帮助这里是我的 build.gradle
build.gradle
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
test {
systemProperties 'property': 'value'
}
【问题讨论】: