Skip to content

fix possibilty that AfterGroups method is invoked before all tests - #2753

Merged
juherr merged 3 commits into
testng-team:masterfrom
velma:fix-aftergroups
Apr 27, 2022
Merged

juherr merged 3 commits into
testng-team:masterfrom
velma:fix-aftergroups

Conversation

@velma

@velma velma commented Apr 24, 2022

Copy link
Copy Markdown
Contributor

Fixes #2754
When AfterGroups method has multiple groups defined then situation was possible that it is invoked not after all tests for all its groups but after the last test of any group

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.

for defined groups are invoked, in case when AfterGrouos method has
multiple groups defined
Comment thread testng-core/src/main/java/org/testng/internal/ConfigurationGroupMethods.java Outdated
Comment thread CHANGES.txt Outdated
@krmahadevan

Copy link
Copy Markdown
Member

@juherr can you please help take a quick look ?

@juherr
juherr merged commit 28d0fd4 into testng-team:master Apr 27, 2022
@juherr juherr added this to the 7.6.0 milestone Sep 7, 2026 — with ChatGPT Codex Connector
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 is executed for each "finished" group when it has multiple groups defined

3 participants