Hi, I have grouped my tests into 3 packages and while giving a “gradle build” all these tests run and I finally get “BUILD SUCCESS/FAILED”. What I wanted is to run the tests in these packages separately while giving build and show the status in the o/p. My gradle.build file is like this:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
dependencies {
compile fileTree(dir: 'lib', includes: ['*.jar'])
}
test {
useTestNG()
options.suites("src/main/resources/config/testng.xml")
}
I have three packages in “src/java/tests” namely com.pack1, com.pk2 and com.pk3.
Please help.