Skip to content

Commit 7dacec5

Browse files
authored
Merge pull request #19 from kenichiice/fix-xml-indent
XMLのインデントを修正
2 parents 5aa6398 + 61c7477 commit 7dacec5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ $ ruby test.rb --runner=junitxml --junitxml-output-file=result.xml
3333
$ cat result.xml
3434
<?xml version="1.0" encoding="UTF-8" ?>
3535
<testsuites>
36-
<testsuite name="MyTest" tests="1" errors="0" failures="1" skipped="0" time="0.005365">
37-
<testcase classname="MyTest" name="test_1(MyTest)" time="0.0053308" assertions="1">
36+
<testsuite name="MyTest" tests="1" errors="0" failures="1" skipped="0" time="0.0037614">
37+
<testcase classname="MyTest" name="test_1(MyTest)" file="test.rb" time="0.0036311" assertions="1">
3838
<failure message="&lt;1&gt; expected but was
3939
&lt;2&gt;.">Failure:
4040
test_1(MyTest) [test.rb:7]:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ $ ruby test.rb --runner=junitxml --junitxml-output-file=result.xml
3333
$ cat result.xml
3434
<?xml version="1.0" encoding="UTF-8" ?>
3535
<testsuites>
36-
<testsuite name="MyTest" tests="1" errors="0" failures="1" skipped="0" time="0.005365">
37-
<testcase classname="MyTest" name="test_1(MyTest)" time="0.0053308" assertions="1">
36+
<testsuite name="MyTest" tests="1" errors="0" failures="1" skipped="0" time="0.0037614">
37+
<testcase classname="MyTest" name="test_1(MyTest)" file="test.rb" time="0.0036311" assertions="1">
3838
<failure message="&lt;1&gt; expected but was
3939
&lt;2&gt;.">Failure:
4040
test_1(MyTest) [test.rb:7]:

lib/test/unit/ui/junitxml/xml.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
% @junit_test_suites.each do |test_suite|
44
<testsuite name="<%=h test_suite.name %>" tests="<%=h test_suite.test_cases.size %>" errors="<%=h test_suite.errors.size %>" failures="<%=h test_suite.failures.size %>" skipped="<%=h test_suite.test_cases.count(&:skipped?) %>" time="<%=h test_suite.time %>">
55
% test_suite.test_cases.each do |test_case|
6-
<testcase classname="<%=h test_case.class_name %>" name="<%=h test_case.name %>" file="<%=h test_case.file%>" time="<%=h test_case.time %>" assertions="<%=h test_case.assertion_count %>">
6+
<testcase classname="<%=h test_case.class_name %>" name="<%=h test_case.name %>" file="<%=h test_case.file%>" time="<%=h test_case.time %>" assertions="<%=h test_case.assertion_count %>">
77
% if test_case.error
88
<error message="<%=h test_case.error.message %>" type="<%=h test_case.error.exception.class.name %>"><%=h test_case.error.long_display %></error>
99
% elsif test_case.failure

0 commit comments

Comments
 (0)