[commit: ghc] wip/fix-junit: testsuite: Show both test name and way in JUnit output (c48e11b)
git at git.haskell.org
git at git.haskell.org
Thu Jan 10 22:36:53 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/fix-junit
Link : http://ghc.haskell.org/trac/ghc/changeset/c48e11be7a26d3a37b716f3c7665a4bbb9c81957/ghc
>---------------------------------------------------------------
commit c48e11be7a26d3a37b716f3c7665a4bbb9c81957
Author: Ben Gamari <ben at smart-cactus.org>
Date: Thu Jan 10 11:45:32 2019 -0500
testsuite: Show both test name and way in JUnit output
>---------------------------------------------------------------
c48e11be7a26d3a37b716f3c7665a4bbb9c81957
testsuite/driver/junit.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py
index f2dbebb..f5daec1 100644
--- a/testsuite/driver/junit.py
+++ b/testsuite/driver/junit.py
@@ -15,24 +15,24 @@ def junit(t):
('unexpected failure', t.unexpected_failures)]:
for (directory, testname, reason, way) in group:
testcase = ET.SubElement(testsuite, 'testcase',
- classname = testname,
- name = way)
+ classname = way,
+ name = '%s(%s)' % (testname, way))
result = ET.SubElement(testcase, 'failure',
type = res_type,
message = reason)
for (directory, testname, reason, way) in t.framework_failures:
testcase = ET.SubElement(testsuite, 'testcase',
- classname = testname,
- name = way)
+ classname = way,
+ name = '%s(%s)' % (testname, way))
result = ET.SubElement(testcase, 'error',
type = "framework failure",
message = reason)
for (directory, testname, way) in t.expected_passes:
testcase = ET.SubElement(testsuite, 'testcase',
- classname = testname,
- name = way)
+ classname = way,
+ name = '%s(%s)' % (testname, way))
return ET.ElementTree(testsuites)
More information about the ghc-commits
mailing list