我正在使用TestNG框架实现项目的自动化。我已经在GitHub上提交了我的项目,并希望在Jenkins上配置它以进行持续集成。我无法使用gradle运行测试。我有两个测试类,我正在使用这个build.gradle,
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenCentral()
}
test {
useTestNG()
options.suites("src/main/resources/testng.xml")
}
dependencies {
compile group: 'org.seleniumhq.selenium', name: 'selenium-server',
version: '3.5.3'
compile group: 'org.json', name: 'json', version: '20160810'
testCompile group: 'org.testng', name: 'testng', version: '6.11'
testCompile group: 'org.jboss.arquillian.testng', name: 'arquillian-
testng-container', version: '1.1.13.Final'
}