File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ describe "JUnit Formatter" do
9
9
10
10
expected = <<-XML
11
11
<?xml version="1.0"?>
12
- <testsuite tests="2" errors="0" failed ="0">
12
+ <testsuite tests="2" errors="0" failures ="0">
13
13
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something"/>
14
14
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something else"/>
15
15
</testsuite>
@@ -25,7 +25,7 @@ describe "JUnit Formatter" do
25
25
26
26
expected = <<-XML
27
27
<?xml version="1.0"?>
28
- <testsuite tests="1" errors="0" failed ="1">
28
+ <testsuite tests="1" errors="0" failures ="1">
29
29
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something">
30
30
<failure/>
31
31
</testcase>
@@ -42,7 +42,7 @@ describe "JUnit Formatter" do
42
42
43
43
expected = <<-XML
44
44
<?xml version="1.0"?>
45
- <testsuite tests="1" errors="1" failed ="0">
45
+ <testsuite tests="1" errors="1" failures ="0">
46
46
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something">
47
47
<error/>
48
48
</testcase>
@@ -62,7 +62,7 @@ describe "JUnit Formatter" do
62
62
63
63
expected = <<-XML
64
64
<?xml version="1.0"?>
65
- <testsuite tests="4" errors="2" failed ="1">
65
+ <testsuite tests="4" errors="2" failures ="1">
66
66
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something1"/>
67
67
<testcase file=\" spec/some_spec.cr\" classname=\" spec.some_spec\" name="should do something2">
68
68
<failure/>
Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ module Spec
30
30
31
31
XML .build(io, indent: 2 ) do |xml |
32
32
attributes = {
33
- tests: @results .size,
34
- errors: @summary [:error ]? || 0 ,
35
- failed : @summary [:fail ]? || 0 ,
33
+ tests: @results .size,
34
+ errors: @summary [:error ]? || 0 ,
35
+ failures : @summary [:fail ]? || 0 ,
36
36
}
37
37
38
38
xml.element(" testsuite" , attributes) do
You can’t perform that action at this time.
0 commit comments