Skip to content

Commit

Permalink
We have multiple cases where the reportng report is not being generat…
Browse files Browse the repository at this point in the history
…ed, by changing the contains to equals the issue is resolved. The reason is because some test groups may be supersets of others and upon assignment of a test case to a test group reportNg may try to assign a test case to wrong group.
  • Loading branch information
a-margaritis committed Feb 15, 2023
1 parent 8d86355 commit b5a498c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public Map<String, List<ISuiteResult>> getResultsByGroup(ISuite suite) {
for (ITestNGMethod testMethod : testMethods) {
for (String group : groups) {
List<ISuiteResult> resultsForGroup = new ArrayList<ISuiteResult>();
if (getTestClassGroup(testMethod.getTestClass()).contains(group)) {
if (getTestClassGroup(testMethod.getTestClass()).equals(group)) {
resultsForGroup.add(result);
if (resultsByGroup.get(group) != null) {
resultsForGroup.addAll(resultsByGroup.get(group));
Expand Down

0 comments on commit b5a498c

Please sign in to comment.