mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-10-02 15:07:23 +00:00
Remove test file extensions from test suite name
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
@@ -110,7 +111,7 @@ class UnityTestSummary:
|
|||||||
self.test_suites[k] = [v]
|
self.test_suites[k] = [v]
|
||||||
ts = []
|
ts = []
|
||||||
for suite_name in self.test_suites:
|
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:
|
with open(self.output, 'w') as f:
|
||||||
TestSuite.to_file(f, ts, prettyprint='True', encoding='utf-8')
|
TestSuite.to_file(f, ts, prettyprint='True', encoding='utf-8')
|
||||||
|
|||||||
Reference in New Issue
Block a user