not seeing any TestNG output after running "./gradlew test"?

Modified on Tue, 28 Mar, 2023 at 4:30 PM

Causes: 

Gradle build script is not properly configured to run TestNG. 


Debugs:

Debug-1:

Check if the TestNG dependency is correctly added to the build.gradle file, and if the test task is properly defined with the TestNG test runner. 

Debug-2:

make sure that the test output directory is properly configured in the build.gradle file.

Debug-3:

Another possible reason could be that there are no TestNG tests in the project or the tests are not properly annotated with the @Test annotation. 



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article