Skip to content

TestNG reports not getting generated in Gradle #3127

Answered by itkhanz
itkhanz asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for looking into this issue. I was able to find out reason why TestNG reports were not being produced. It turned out, for some of my tests, NullPointerException was being thrown in the test listener causing Gradle to throw this below exception and not generating TestNG reports
org.gradle.api.internal.tasks.testing.TestSuiteExecutionException: Could not complete execution for Gradle Test Executor 30.
It seems to me a more gradle specific issue where it was not able to handle this exception coming from testng listener class implementation.

On my end, I was able to resolve this issue by implementing a nullsafe mechanism so tests now don't throw NullPointerException leading to succ…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@itkhanz
Comment options

@krmahadevan
Comment options

@itkhanz
Comment options

Answer selected by itkhanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants