task productionTestMild(type: Test) {
useTestNG() {
includeGroups "production-mild"
excludeGroups "bug"
include 'com/cloudstorage/qa/**'
useDefaultListeners = true
options {
options.parallel = "classes"
options.threadCount = 3
// This doesn't seem to actually work
options.listeners << "com.cloudstorage.qa.testListener.testListener"
}
}
}
The options.parallel and options.threadCount seem to be honored, but not options.listeners. Can you see what I'm doing wrong? I'm using TestNG 6.11 and Gradle 2.13.
I was able to have the listener invoked by adding it as below :
useTestNG() {
suites 'src/test/resources/krmahadevan.xml'
systemProperties(System.getProperties())
options {
listeners.add("com.rationaleemotions.EchoListener")
}
}
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users+unsubscribe@googlegroups.com.