mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-09-14 22:30:00 +00:00
Merge pull request #801 from jack-rmds/stylize_as_junit_py_enhance_suite_name
Remove test file extensions from test suite name
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
from glob import glob
|
||||
import argparse
|
||||
|
||||
@@ -110,7 +111,7 @@ class UnityTestSummary:
|
||||
self.test_suites[k] = [v]
|
||||
ts = []
|
||||
for suite_name in self.test_suites:
|
||||
ts.append(TestSuite(suite_name, self.test_suites[suite_name]))
|
||||
ts.append(TestSuite(re.sub(r'\.(testfail|testpass|testResults)$', '', suite_name), self.test_suites[suite_name]))
|
||||
|
||||
with open(self.output, 'w') as f:
|
||||
TestSuite.to_file(f, ts, prettyprint='True', encoding='utf-8')
|
||||
|
||||
Reference in New Issue
Block a user