test-unit-ext 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS.en ADDED
@@ -0,0 +1,7 @@
1
+ # -*- rd -*-
2
+
3
+ = NEWS
4
+
5
+ == 0.1.0: 2008-02-21
6
+
7
+ * Initial release.
data/NEWS.ja ADDED
@@ -0,0 +1,7 @@
1
+ # -*- rd -*-
2
+
3
+ = NEWS.ja
4
+
5
+ == 0.1.0: 2008-02-21
6
+
7
+ * 最初のリリース。
data/README.en ADDED
@@ -0,0 +1,51 @@
1
+ # -*- rd -*-
2
+
3
+ = README
4
+
5
+ == Name
6
+
7
+ TestUnitExt
8
+
9
+ == What's this?
10
+
11
+ TestUnitExt extends the standard Test::Unit.
12
+
13
+ TestUnitExt provides some useful features:
14
+
15
+ * Emacs friendly backtrace format.
16
+ * runs tests depending on priority.
17
+ * supports metadata for each test.
18
+ * always shows tests result even if tests are interrupted.
19
+ * colorized output.
20
+
21
+ == Author
22
+
23
+ Kouhei Sutou <kou@cozmixng.org>
24
+
25
+ == Licence
26
+
27
+ Ruby's.
28
+
29
+ # == Mailing list
30
+ #
31
+ # None. needed?
32
+
33
+ == Reference manual
34
+
35
+ ((<URL:http://test-unit-ext.rubyforge.org/doc/>))
36
+
37
+ == Dependency libraries
38
+
39
+ None
40
+
41
+ == Usage
42
+
43
+ require 'test-unit-ext'
44
+
45
+ === Priority
46
+
47
+ === Metadata
48
+
49
+ == Thanks
50
+
51
+ * ...
data/README.ja ADDED
@@ -0,0 +1,51 @@
1
+ # -*- rd -*-
2
+
3
+ = README.ja
4
+
5
+ == 名前
6
+
7
+ TestUnitExt
8
+
9
+ == なにこれ?
10
+
11
+ TestUnitExtはRuby標準のTest::Unitを拡張します。
12
+
13
+ TestUnitExtはいくつかの有用な機能を提供します。
14
+
15
+ * Emacsにやさしいバックトレースフォーマット
16
+ * 優先度に応じたテストの実行
17
+ * 各テストへのメタデータの付加
18
+ * テストを途中終了(Ctrl+C)しても結果を表示
19
+ * 色付き出力
20
+
21
+ == 作者
22
+
23
+ Kouhei Sutou <kou@cozmixng.org>
24
+
25
+ == ライセンス
26
+
27
+ Ruby's.
28
+
29
+ # == メーリングリスト
30
+ #
31
+ # なし。必要?
32
+
33
+ == リファレンスマニュアル
34
+
35
+ ((<URL:http://test-unit-ext.rubyforge.org/doc/>))
36
+
37
+ == 依存ライブラリ
38
+
39
+ なし
40
+
41
+ == 使用法
42
+
43
+ require 'test-unit-ext'
44
+
45
+ === 優先度
46
+
47
+ === メタデータ
48
+
49
+ == 感謝
50
+
51
+ * ...
data/Rakefile ADDED
@@ -0,0 +1,106 @@
1
+ # -*- mode: ruby; coding: utf-8 -*-
2
+
3
+ require 'English'
4
+
5
+ require 'find'
6
+ require 'fileutils'
7
+ require 'rubygems'
8
+ require 'hoe'
9
+
10
+ base_dir = File.join(File.dirname(__FILE__))
11
+ truncate_base_dir = Proc.new do |x|
12
+ x.gsub(/^#{Regexp.escape(base_dir + File::SEPARATOR)}/, '')
13
+ end
14
+
15
+ lib_dir = File.join(base_dir, 'lib')
16
+ $LOAD_PATH.unshift(lib_dir)
17
+
18
+ require 'test-unit-ext'
19
+
20
+ Test::Unit.run = true
21
+
22
+ manifest = File.join(base_dir, "Manifest.txt")
23
+ manifest_contents = []
24
+ base_dir_included_components = %w(NEWS.en NEWS.ja README.en README.ja Rakefile)
25
+ excluded_components = %w(.svn .test-result)
26
+ excluded_suffixes = %w(.png .ps .pdf .o .so .txt)
27
+ Find.find(base_dir) do |target|
28
+ target = truncate_base_dir[target]
29
+ components = target.split(File::SEPARATOR)
30
+ if components.size == 1 and !File.directory?(target)
31
+ next unless base_dir_included_components.include?(components[0])
32
+ end
33
+ Find.prune if (excluded_components - components) != excluded_components
34
+ next if excluded_suffixes.include?(File.extname(target))
35
+ manifest_contents << target if File.file?(target)
36
+ end
37
+
38
+ dummy_files = %w(History.txt README.txt)
39
+ FileUtils.touch("History.txt")
40
+ FileUtils.cp("README.en", "README.txt")
41
+
42
+ File.open(manifest, "w") do |f|
43
+ f.puts manifest_contents.sort.join("\n")
44
+ end
45
+ at_exit do
46
+ FileUtils.rm_f(manifest)
47
+ FileUtils.rm_f(dummy_files)
48
+ end
49
+
50
+ def cleanup_white_space(entry)
51
+ entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
52
+ end
53
+
54
+ version = TestUnitExt::VERSION
55
+ ENV["VERSION"] = version
56
+ project = Hoe.new('test-unit-ext', version) do |project|
57
+ project.rubyforge_name = 'test-unit-ext'
58
+ project.remote_rdoc_dir = "doc"
59
+ project.author = ["Kouhei Sutou"]
60
+ project.email = ['kou@cozmixng.org']
61
+ project.summary = 'Ruby bindings for cairo'
62
+ project.url = 'http://test-unit-ext.rubyforge.org/'
63
+
64
+ news_of_current_release = File.read("NEWS.en").split(/^==\s.*$/)[1]
65
+ project.changes = cleanup_white_space(news_of_current_release)
66
+
67
+ entries = File.read("README.en").split(/^==\s(.*)$/)
68
+ whats_this = cleanup_white_space(entries[entries.index("What\'s this?") + 1])
69
+ project.summary, project.description, = whats_this.split(/\n\n+/, 3)
70
+ end
71
+
72
+ project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"}
73
+
74
+ rdoc_task = nil
75
+ if ObjectSpace.each_object(Rake::RDocTask) {|rdoc_task|} != 1
76
+ puts "hoe may be changed"
77
+ end
78
+ rdoc_task.main = "README.en"
79
+ rdoc_task.options.delete("-d")
80
+ rdoc_task.options << "--charset=UTF-8"
81
+ rdoc_task.template = "kilmer"
82
+ rdoc_task.rdoc_files += ["README.en", "NEWS.en"]
83
+
84
+ desc 'Tag the repository for release.'
85
+ task :tag do
86
+ message = "Released TestUnitExt #{version}!"
87
+ base = "svn+ssh://#{ENV['USER']}@rubyforge.org/var/svn/test-unit-ext/"
88
+ sh 'svn', 'copy', '-m', message, "#{base}trunk", "#{base}tags/#{version}"
89
+ end
90
+
91
+ desc "Publish static HTML files"
92
+ task :publish_html do
93
+ ruby "misc/rd2html.rb"
94
+ Dir.glob("html/*.html.en") do |html_en|
95
+ FileUtils.cp(html_en, html_en.sub(/\.en$/, ''))
96
+ end
97
+ config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
98
+ host = "#{config["username"]}@rubyforge.org"
99
+ remote_dir = "/var/www/gforge-projects/#{project.rubyforge_name}"
100
+ local_dir = "html"
101
+ sh "rsync #{project.rsync_args} #{local_dir}/*.html* #{host}:#{remote_dir}"
102
+ end
103
+ task :publish_docs => :publish_html
104
+
105
+ desc "Distribute new release."
106
+ task :dist => [:publish_docs, :release, :tag, :announce]
data/html/index.html ADDED
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>TestUnitExt</title>
9
+ </head>
10
+ <body>
11
+ <h1>TestUnitExt</h1>
12
+ <ul>
13
+ <li>
14
+ <a href="http://rubyforge.org/projects/test-unit-ext/">Project Page</a>
15
+ </li>
16
+ <li><a href="readme.html">README</a>(<a href="readme.html.ja">ja</a>)</li>
17
+ <li><a href="news.html">NEWS</a>(<a href="news.html.ja">ja</a>)</li>
18
+ <li><a href="http://test-unit-ext.rubyforge.org/doc/">Reference</a></li>
19
+ </ul>
20
+ </body>
21
+ </html>
data/html/news.html ADDED
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>NEWS.en</title>
9
+ </head>
10
+ <body>
11
+ <h1><a name="label-0" id="label-0">NEWS</a></h1><!-- RDLabel: "NEWS" -->
12
+ <h2><a name="label-1" id="label-1">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
13
+ <ul>
14
+ <li>Initial release.</li>
15
+ </ul>
16
+
17
+ </body>
18
+ </html>
data/html/news.html.en ADDED
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>NEWS.en</title>
9
+ </head>
10
+ <body>
11
+ <h1><a name="label-0" id="label-0">NEWS</a></h1><!-- RDLabel: "NEWS" -->
12
+ <h2><a name="label-1" id="label-1">0.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
13
+ <ul>
14
+ <li>Initial release.</li>
15
+ </ul>
16
+
17
+ </body>
18
+ </html>
data/html/news.html.ja ADDED
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>NEWS.ja</title>
9
+ </head>
10
+ <body>
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.1.0: 2008-02-21</a></h2><!-- RDLabel: "0.1.0: 2008-02-21" -->
13
+ <ul>
14
+ <li>最初のリリース。</li>
15
+ </ul>
16
+
17
+ </body>
18
+ </html>
data/html/readme.html ADDED
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>README.en</title>
9
+ </head>
10
+ <body>
11
+ <h1><a name="label-0" id="label-0">README</a></h1><!-- RDLabel: "README" -->
12
+ <h2><a name="label-1" id="label-1">Name</a></h2><!-- RDLabel: "Name" -->
13
+ <p>TestUnitExt</p>
14
+ <h2><a name="label-2" id="label-2">What's this?</a></h2><!-- RDLabel: "What's this?" -->
15
+ <p>TestUnitExt extends the standard Test::Unit.</p>
16
+ <p>TestUnitExt provides some useful features:</p>
17
+ <ul>
18
+ <li>Emacs friendly backtrace format.</li>
19
+ <li>runs tests depending on priority.</li>
20
+ <li>supports metadata for each test.</li>
21
+ <li>always shows tests result even if tests are interrupted.</li>
22
+ <li>colorized output.</li>
23
+ </ul>
24
+ <h2><a name="label-3" id="label-3">Author</a></h2><!-- RDLabel: "Author" -->
25
+ <p>Kouhei Sutou &lt;kou@cozmixng.org&gt;</p>
26
+ <h2><a name="label-4" id="label-4">Licence</a></h2><!-- RDLabel: "Licence" -->
27
+ <p>Ruby's.</p>
28
+ <h2><a name="label-5" id="label-5">Reference manual</a></h2><!-- RDLabel: "Reference manual" -->
29
+ <p><a href="http://test-unit-ext.rubyforge.org/doc/">&lt;URL:http://test-unit-ext.rubyforge.org/doc/&gt;</a></p>
30
+ <h2><a name="label-6" id="label-6">Dependency libraries</a></h2><!-- RDLabel: "Dependency libraries" -->
31
+ <p>None</p>
32
+ <h2><a name="label-7" id="label-7">Usage</a></h2><!-- RDLabel: "Usage" -->
33
+ <pre>require 'test-unit-ext'</pre>
34
+ <h3><a name="label-8" id="label-8">Priority</a></h3><!-- RDLabel: "Priority" -->
35
+ <h3><a name="label-9" id="label-9">Metadata</a></h3><!-- RDLabel: "Metadata" -->
36
+ <h2><a name="label-10" id="label-10">Thanks</a></h2><!-- RDLabel: "Thanks" -->
37
+ <ul>
38
+ <li>...</li>
39
+ </ul>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>README.en</title>
9
+ </head>
10
+ <body>
11
+ <h1><a name="label-0" id="label-0">README</a></h1><!-- RDLabel: "README" -->
12
+ <h2><a name="label-1" id="label-1">Name</a></h2><!-- RDLabel: "Name" -->
13
+ <p>TestUnitExt</p>
14
+ <h2><a name="label-2" id="label-2">What's this?</a></h2><!-- RDLabel: "What's this?" -->
15
+ <p>TestUnitExt extends the standard Test::Unit.</p>
16
+ <p>TestUnitExt provides some useful features:</p>
17
+ <ul>
18
+ <li>Emacs friendly backtrace format.</li>
19
+ <li>runs tests depending on priority.</li>
20
+ <li>supports metadata for each test.</li>
21
+ <li>always shows tests result even if tests are interrupted.</li>
22
+ <li>colorized output.</li>
23
+ </ul>
24
+ <h2><a name="label-3" id="label-3">Author</a></h2><!-- RDLabel: "Author" -->
25
+ <p>Kouhei Sutou &lt;kou@cozmixng.org&gt;</p>
26
+ <h2><a name="label-4" id="label-4">Licence</a></h2><!-- RDLabel: "Licence" -->
27
+ <p>Ruby's.</p>
28
+ <h2><a name="label-5" id="label-5">Reference manual</a></h2><!-- RDLabel: "Reference manual" -->
29
+ <p><a href="http://test-unit-ext.rubyforge.org/doc/">&lt;URL:http://test-unit-ext.rubyforge.org/doc/&gt;</a></p>
30
+ <h2><a name="label-6" id="label-6">Dependency libraries</a></h2><!-- RDLabel: "Dependency libraries" -->
31
+ <p>None</p>
32
+ <h2><a name="label-7" id="label-7">Usage</a></h2><!-- RDLabel: "Usage" -->
33
+ <pre>require 'test-unit-ext'</pre>
34
+ <h3><a name="label-8" id="label-8">Priority</a></h3><!-- RDLabel: "Priority" -->
35
+ <h3><a name="label-9" id="label-9">Metadata</a></h3><!-- RDLabel: "Metadata" -->
36
+ <h2><a name="label-10" id="label-10">Thanks</a></h2><!-- RDLabel: "Thanks" -->
37
+ <ul>
38
+ <li>...</li>
39
+ </ul>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,42 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
6
+ <head>
7
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8
+ <title>README.ja</title>
9
+ </head>
10
+ <body>
11
+ <h1><a name="label-0" id="label-0">README.ja</a></h1><!-- RDLabel: "README.ja" -->
12
+ <h2><a name="label-1" id="label-1">名前</a></h2><!-- RDLabel: "名前" -->
13
+ <p>TestUnitExt</p>
14
+ <h2><a name="label-2" id="label-2">なにこれ?</a></h2><!-- RDLabel: "なにこれ?" -->
15
+ <p>TestUnitExtはRuby標準のTest::Unitを拡張します。</p>
16
+ <p>TestUnitExtはいくつかの有用な機能を提供します。</p>
17
+ <ul>
18
+ <li>Emacsにやさしいバックトレースフォーマット</li>
19
+ <li>優先度に応じたテストの実行</li>
20
+ <li>各テストへのメタデータの付加</li>
21
+ <li>テストを途中終了(Ctrl+C)しても結果を表示</li>
22
+ <li>色付き出力</li>
23
+ </ul>
24
+ <h2><a name="label-3" id="label-3">作者</a></h2><!-- RDLabel: "作者" -->
25
+ <p>Kouhei Sutou &lt;kou@cozmixng.org&gt;</p>
26
+ <h2><a name="label-4" id="label-4">ライセンス</a></h2><!-- RDLabel: "ライセンス" -->
27
+ <p>Ruby's.</p>
28
+ <h2><a name="label-5" id="label-5">リファレンスマニュアル</a></h2><!-- RDLabel: "リファレンスマニュアル" -->
29
+ <p><a href="http://test-unit-ext.rubyforge.org/doc/">&lt;URL:http://test-unit-ext.rubyforge.org/doc/&gt;</a></p>
30
+ <h2><a name="label-6" id="label-6">依存ライブラリ</a></h2><!-- RDLabel: "依存ライブラリ" -->
31
+ <p>なし</p>
32
+ <h2><a name="label-7" id="label-7">使用法</a></h2><!-- RDLabel: "使用法" -->
33
+ <pre>require 'test-unit-ext'</pre>
34
+ <h3><a name="label-8" id="label-8">優先度</a></h3><!-- RDLabel: "優先度" -->
35
+ <h3><a name="label-9" id="label-9">メタデータ</a></h3><!-- RDLabel: "メタデータ" -->
36
+ <h2><a name="label-10" id="label-10">感謝</a></h2><!-- RDLabel: "感謝" -->
37
+ <ul>
38
+ <li>...</li>
39
+ </ul>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,11 @@
1
+ require "test/unit"
2
+
3
+ require "test-unit-ext/version"
4
+ require "test-unit-ext/color"
5
+ require "test-unit-ext/colorized-runner"
6
+ require "test-unit-ext/diff"
7
+ require "test-unit-ext/always-show-result"
8
+ require "test-unit-ext/priority"
9
+ require "test-unit-ext/backtrace-filter"
10
+ require "test-unit-ext/long-display-for-emacs"
11
+ require "test-unit-ext/metadata"