Hi all,

>From the documentation for the Java plugin, I assumed that I didn't need to
do anything special for my TestNG tests to be run.

http://gradle.org/java_plugin.html

> "It automatically detects and executes all unit tests in the test source
set. It also generates a report once test execution is complete. JUnit and
TestNG are both supported."

But my tests were not being run. Debug output showed that a Junit scanner
was being run but nothing for TestNG. I added the following to my
subprojects configuration and the tests are now being run:

    tasks.test.useTestNG()


So my questions are:

Is TestNG support supposed to be enabled out of the box?
Is the documentation correct?
Is my fix the correct approach to enable TestNG tests?


Cheers,
Kevin

Reply via email to