test-unit-ext 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +4 -0
- data/NEWS.ja +4 -0
- data/html/news.html +7 -3
- data/html/news.html.en +7 -3
- data/html/news.html.ja +7 -3
- data/lib/test-unit-ext/version.rb +1 -1
- data/lib/test-unit-ext/xml-report.rb +8 -10
- data/test/test_xml_report.rb +4 -6
- metadata +2 -2
data/NEWS.en
CHANGED
data/NEWS.ja
CHANGED
data/html/news.html
CHANGED
@@ -9,12 +9,16 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<h1><a name="label-0" id="label-0">NEWS</a></h1><!-- RDLabel: "NEWS" -->
|
12
|
-
<h2><a name="label-1" id="label-1">0.
|
12
|
+
<h2><a name="label-1" id="label-1">0.4.0: 2008-03-17</a></h2><!-- RDLabel: "0.4.0: 2008-03-17" -->
|
13
|
+
<ul>
|
14
|
+
<li>Changed XML report format.</li>
|
15
|
+
</ul>
|
16
|
+
<h2><a name="label-2" id="label-2">0.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
|
13
17
|
<ul>
|
14
18
|
<li>Changed XML report format.</li>
|
15
19
|
<li>Improved search method to find test result directory.</li>
|
16
20
|
</ul>
|
17
|
-
<h2><a name="label-
|
21
|
+
<h2><a name="label-3" id="label-3">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
|
18
22
|
<ul>
|
19
23
|
<li>Supported XML report.
|
20
24
|
<ul>
|
@@ -22,7 +26,7 @@
|
|
22
26
|
</ul></li>
|
23
27
|
<li>Supported diff output for assert_equal.</li>
|
24
28
|
</ul>
|
25
|
-
<h2><a name="label-
|
29
|
+
<h2><a name="label-4" id="label-4">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
|
26
30
|
<ul>
|
27
31
|
<li>Initial release.</li>
|
28
32
|
</ul>
|
data/html/news.html.en
CHANGED
@@ -9,12 +9,16 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<h1><a name="label-0" id="label-0">NEWS</a></h1><!-- RDLabel: "NEWS" -->
|
12
|
-
<h2><a name="label-1" id="label-1">0.
|
12
|
+
<h2><a name="label-1" id="label-1">0.4.0: 2008-03-17</a></h2><!-- RDLabel: "0.4.0: 2008-03-17" -->
|
13
|
+
<ul>
|
14
|
+
<li>Changed XML report format.</li>
|
15
|
+
</ul>
|
16
|
+
<h2><a name="label-2" id="label-2">0.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
|
13
17
|
<ul>
|
14
18
|
<li>Changed XML report format.</li>
|
15
19
|
<li>Improved search method to find test result directory.</li>
|
16
20
|
</ul>
|
17
|
-
<h2><a name="label-
|
21
|
+
<h2><a name="label-3" id="label-3">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
|
18
22
|
<ul>
|
19
23
|
<li>Supported XML report.
|
20
24
|
<ul>
|
@@ -22,7 +26,7 @@
|
|
22
26
|
</ul></li>
|
23
27
|
<li>Supported diff output for assert_equal.</li>
|
24
28
|
</ul>
|
25
|
-
<h2><a name="label-
|
29
|
+
<h2><a name="label-4" id="label-4">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
|
26
30
|
<ul>
|
27
31
|
<li>Initial release.</li>
|
28
32
|
</ul>
|
data/html/news.html.ja
CHANGED
@@ -9,12 +9,16 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<h1><a name="label-0" id="label-0">NEWS.ja</a></h1><!-- RDLabel: "NEWS.ja" -->
|
12
|
-
<h2><a name="label-1" id="label-1">0.
|
12
|
+
<h2><a name="label-1" id="label-1">0.4.0: 2008-03-17</a></h2><!-- RDLabel: "0.4.0: 2008-03-17" -->
|
13
|
+
<ul>
|
14
|
+
<li>XML出力形式の変更</li>
|
15
|
+
</ul>
|
16
|
+
<h2><a name="label-2" id="label-2">0.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
|
13
17
|
<ul>
|
14
18
|
<li>XML出力形式の変更</li>
|
15
19
|
<li>テスト結果を保存するディレクトリの検索処理を改良</li>
|
16
20
|
</ul>
|
17
|
-
<h2><a name="label-
|
21
|
+
<h2><a name="label-3" id="label-3">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
|
18
22
|
<ul>
|
19
23
|
<li>XML出力のサポート。
|
20
24
|
<ul>
|
@@ -22,7 +26,7 @@
|
|
22
26
|
</ul></li>
|
23
27
|
<li>assert_equal時のdiff出力のサポート。</li>
|
24
28
|
</ul>
|
25
|
-
<h2><a name="label-
|
29
|
+
<h2><a name="label-4" id="label-4">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
|
26
30
|
<ul>
|
27
31
|
<li>最初のリリース。</li>
|
28
32
|
</ul>
|
@@ -20,7 +20,7 @@ module Test
|
|
20
20
|
<test>
|
21
21
|
<name>#{h(@test.method_name)}</name>
|
22
22
|
<description/>
|
23
|
-
#{
|
23
|
+
#{options_xml}
|
24
24
|
</test>
|
25
25
|
<status>#{h(status_name)}</status>
|
26
26
|
<detail>#{h(message)}</detail>
|
@@ -31,17 +31,15 @@ XML
|
|
31
31
|
end
|
32
32
|
|
33
33
|
private
|
34
|
-
def
|
35
|
-
|
36
|
-
attributes = @test.attributes.collect do |key, value|
|
34
|
+
def options_xml
|
35
|
+
@test.attributes.collect do |key, value|
|
37
36
|
<<-XML
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
<option>
|
38
|
+
<name>#{h(key)}</name>
|
39
|
+
<value>#{h(value)}</value>
|
40
|
+
</option>
|
42
41
|
XML
|
43
|
-
end
|
44
|
-
" <attributes>\n#{attributes.join} </attributes>"
|
42
|
+
end.join
|
45
43
|
end
|
46
44
|
|
47
45
|
def backtrace_xml
|
data/test/test_xml_report.rb
CHANGED
@@ -65,12 +65,10 @@ XML
|
|
65
65
|
<test>
|
66
66
|
<name>_test_failure</name>
|
67
67
|
<description/>
|
68
|
-
<
|
69
|
-
<
|
70
|
-
|
71
|
-
|
72
|
-
</attribute>
|
73
|
-
</attributes>
|
68
|
+
<option>
|
69
|
+
<name>bug</name>
|
70
|
+
<value>1234</value>
|
71
|
+
</option>
|
74
72
|
</test>
|
75
73
|
<status>failure</status>
|
76
74
|
<detail><false> is not true.</detail>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-unit-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-03-
|
12
|
+
date: 2008-03-17 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|