diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-01-10 11:45:32 -0500 |
---|---|---|
committer | Ben Gamari <ben@well-typed.com> | 2019-01-14 09:30:40 -0500 |
commit | 0f3c04e4017b33f204efb2a62ae3a61d241eb700 (patch) | |
tree | 62aa92f9ce66bfffd3d900e455ddb4369f8a6223 /testsuite/driver | |
parent | cb31b23d39151c9a8b3c80ca11dd299224940f0d (diff) | |
download | haskell-0f3c04e4017b33f204efb2a62ae3a61d241eb700.tar.gz |
testsuite: Show both test name and way in JUnit output
Diffstat (limited to 'testsuite/driver')
-rw-r--r-- | testsuite/driver/junit.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuite/driver/junit.py b/testsuite/driver/junit.py index f2dbebb96a..f5daec1e47 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) |