Skip to content

Commit 6b5b413

Browse files
committed
[csm] ignore testng-results.xml
since this file is not JUnit format
1 parent 3398b2b commit 6b5b413

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

launchable/test_runners/maven.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ def format_same_bin(s: str) -> List[Dict[str, str]]:
161161
def record_tests(client, reports):
162162
client.path_builder = junit5_nested_class_path_builder(client.path_builder)
163163

164-
# Override report method to filter out failsafe-summary.xml
164+
# Override report method to filter out non-JUnit report files
165165
original_report = client.report
166166

167+
IGNORED_FILES = {'failsafe-summary.xml', 'testng-results.xml'}
168+
167169
def report_with_filter(junit_report_file: str):
168-
if not junit_report_file.endswith('failsafe-summary.xml'):
170+
if not any(junit_report_file.endswith(f) for f in IGNORED_FILES):
169171
original_report(junit_report_file)
170172

171173
client.report = report_with_filter

0 commit comments

Comments
 (0)