Skip to content

add proper error reporting for old testng - #1459

Merged
Sheng Chen (jdneo) merged 1 commit into
microsoft:mainfrom
gayanper:fix_old_testng
Jul 29, 2022
Merged

Sheng Chen (jdneo) merged 1 commit into
microsoft:mainfrom
gayanper:fix_old_testng

Conversation

@gayanper

Copy link
Copy Markdown
Contributor

TestNG version prior to like 6.7.x didn't failed the test method when
related configuration method failed. Instead they skipped all the
test methods which results in no error message in the Test Explorer.

This change add those missing information if the test method is skipped
followed by a configuration method failure.

TestNG version prior to like 6.7.x didn't failed the test method when
related configuration method failed. Instead they skipped all the
test methods which results in no error message in the Test Explorer.

This change add those missing information if the test method is skipped
followed by a configuration method failure.
@jdneo
Sheng Chen (jdneo) self-requested a review July 29, 2022 01:16

@jdneo Sheng Chen (jdneo) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix works properly when exception happens at methods with TestNG configuration annotations.

Thank you for your contribution Gayan Perera (@gayanper)!

@jdneo
Sheng Chen (jdneo) merged commit feb9d45 into microsoft:main Jul 29, 2022
@jdneo Sheng Chen (jdneo) added this to the 0.37.0 milestone Jul 29, 2022
@gayanper
Gayan Perera (gayanper) deleted the fix_old_testng branch July 29, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants