Discussion:
[testng-dev] Gradle build withTestNG. How do I run TestNG in Mixed Mode.
s***@bt.com
2017-07-21 12:16:20 UTC
Permalink
I am new to Gradle working with a large team on a Legacy project.

We have JUnit4 unit tests Cucumber BDD tests and now we are introducing
TestNG to the framework.

We are having issued enabling 'Mixed' mode.

We do not use a Suite.xml file to manage the tests and need to define this
option in the build.gradle file if possible.

Being new to Gradle and TestNG I am having a problem finding the solution.

Could you please help

Stuart Davies
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
SreeCharan Shroff
2017-07-26 00:06:42 UTC
Permalink
add this into your build.gradle

test {
useTestNG {
options.suites("testng.xml")
}
}
Post by s***@bt.com
I am new to Gradle working with a large team on a Legacy project.
We have JUnit4 unit tests Cucumber BDD tests and now we are introducing
TestNG to the framework.
We are having issued enabling 'Mixed' mode.
We do not use a Suite.xml file to manage the tests and need to define this
option in the build.gradle file if possible.
Being new to Gradle and TestNG I am having a problem finding the solution.
Could you please help
Stuart Davies
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
Loading...