Skip to content

Commit

Permalink
fix(TestRunFilterListener): disable only '@test' methods
Browse files Browse the repository at this point in the history
  • Loading branch information
akamarouski committed Apr 1, 2024
1 parent 99b95b2 commit a46e77c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public void onStart(ISuite suite) {
return;
}

for (ITestNGMethod testMethod : suite.getAllMethods()) {
for (ITestNGMethod testMethod : suite.getAllMethods().stream().filter(ITestNGMethod::isTest)
.collect(Collectors.toList())) {
boolean isPerform = filters.stream()
.allMatch(filter -> filter.isPerform(testMethod));

Expand Down

0 comments on commit a46e77c

Please sign in to comment.