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 CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = NEWS
4
4
 
5
+ == 0.4.0: 2008-03-17
6
+
7
+ * Changed XML report format.
8
+
5
9
  == 0.3.0: 2008-03-10
6
10
 
7
11
  * Changed XML report format.
data/NEWS.ja CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = NEWS.ja
4
4
 
5
+ == 0.4.0: 2008-03-17
6
+
7
+ * XML出力形式の変更
8
+
5
9
  == 0.3.0: 2008-03-10
6
10
 
7
11
  * XML出力形式の変更
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.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
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-2" id="label-2">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
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-3" id="label-3">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
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.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
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-2" id="label-2">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
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-3" id="label-3">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
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.3.0: 2008-03-10</a></h2><!-- RDLabel: "0.3.0: 2008-03-10" -->
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-2" id="label-2">0.2.0: 2008-03-03</a></h2><!-- RDLabel: "0.2.0: 2008-03-03" -->
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-3" id="label-3">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
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>
@@ -1,3 +1,3 @@
1
1
  module TestUnitExt
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -20,7 +20,7 @@ module Test
20
20
  <test>
21
21
  <name>#{h(@test.method_name)}</name>
22
22
  <description/>
23
- #{attributes_xml}
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 attributes_xml
35
- return "" if @test.attributes.empty?
36
- attributes = @test.attributes.collect do |key, value|
34
+ def options_xml
35
+ @test.attributes.collect do |key, value|
37
36
  <<-XML
38
- <attribute>
39
- <name>#{h(key)}</name>
40
- <value>#{h(value)}</value>
41
- </attribute>
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
@@ -65,12 +65,10 @@ XML
65
65
  <test>
66
66
  <name>_test_failure</name>
67
67
  <description/>
68
- <attributes>
69
- <attribute>
70
- <name>bug</name>
71
- <value>1234</value>
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>&lt;false&gt; 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.3.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-10 00:00:00 +09:00
12
+ date: 2008-03-17 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15