TestNg not creating HTML reports in test-output

292 views
Skip to first unread message

Deepak Gopal

unread,
Jan 11, 2021, 1:22:50 AM1/11/21
to testng-users
Hi

I have a Maven project with multiple modules which are inter-dependent.
When I trigger a test in one of the modules, example - api-automation, testng does not create anything in test-output. 
I am using another reporting tool called Extent report, which does create a test report. 
But I am using ITestListener and IResultListener implementation to capture the ITestResult for Extent report.
I expect testNg to create the default output files like index.html, which it's not doing, how do I get this to happen?

My testng dependency:
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.9.5</version>
</dependency>

Module structure:
<modules>
<module>automation-framework</module>
<module>automation-core</module>
<module>automation-service</module>
<module>automation-trigger</module>
<module>api-automation</module>
<module>app-automation</module>
<module>web-automation</module>
</modules>

Aliasger Kiranawala

unread,
Jan 11, 2021, 1:24:42 AM1/11/21
to testng-users
Better to upgrade to testng 7.3 version and check once. 

⇜Krishnan Mahadevan⇝

unread,
Jan 11, 2021, 3:20:04 AM1/11/21
to testng-users
When you run tests via maven, you should be looking for the TestNG reports in target/surefire-reports folder. Thats the default location for Maven.

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 Scribblings @ https://rationaleemotions.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 view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/d5b2e362-82d2-4ad8-8df1-0835d933d6e4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages