TestNG includes cases marked as enabled=true in JUnit report as skipped cases.

32 views
Skip to first unread message

abhi shinde

unread,
Dec 26, 2023, 4:36:01 AM12/26/23
to testng...@googlegroups.com
Hello, 

There is weird behaviour, 

In the test suite we transform annotations of a few cases and mark them disabled by setting (@enabled = false). However these cases are still getting included in JUnit results as skipped. 

Is there any way to avoid them getting added into an JUnit report?

Thanks,
Abhijit Shinde

⇜Krishnan Mahadevan⇝

unread,
Dec 26, 2023, 11:50:33 PM12/26/23
to testng...@googlegroups.com
Abhijit,

Since these reports are generated by TestNG, yes that is definitely possible. Please file an issue on the TestNG github page and include a sample that can be used to reproduce the problem. We can include the fix in the next version of TestNG [ TestNG v7.9.0 was released only yesterday ]


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/CAGqkL6iZvwppRGE%3DZGZC2u7w%3Diz%3DT%2BkzOYMhjvWZ2JX8sQo%3D5g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages