Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: AfterGroups config annotation does not consider retries for tests #2690

Merged
merged 3 commits into from Dec 12, 2021

Conversation

morskyrv
Copy link
Contributor

@morskyrv morskyrv commented Dec 10, 2021

It fixes #2684 but I'm not sure about this solution, so waiting for comments.

Fixes #2684.

Did you remember to?

  • Add test case(s)
  • Update CHANGES.txt
  • Auto applied styling via ./gradlew autostyleApply

We encourage pull requests that:

  • Add new features to TestNG (or)
  • Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

Note: For more information on contribution guidelines please make sure you refer our Contributing section for detailed set of steps.

Copy link
Member

@krmahadevan krmahadevan left a comment

Choose a reason for hiding this comment

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

Also can you please help check if the problem is just confined to @AfterGroups or if this problem exists with other @AfterXXX configuration methods as well ?

@morskyrv
Copy link
Contributor Author

@krmahadevan This bug affects only @AfterGroups, should I add checks for other config methods to the test too?
Before Fix:
image
After Fix:
image

@krmahadevan
Copy link
Member

Yes pls. That way we will be sure that we have covered all aspects in terms of tests for retry analyser + config method combos.

@morskyrv
Copy link
Contributor Author

@krmahadevan done

@krmahadevan krmahadevan merged commit 290532e into testng-team:master Dec 12, 2021
@krmahadevan
Copy link
Member

@morskyrv Thank you for taking the time to help raise a PR. Hope to see many more from you. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AfterGroups config annotation does not consider retries for tests
3 participants