reap 0.5.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN-0.6.1 +3 -0
- data/Rakefile +19 -0
- data/Reapfile +46 -33
- data/data/site_ruby/reap/template.yaml +94 -0
- data/lib/reap/announce-task.rb +159 -0
- data/lib/reap/chmod-task.rb +82 -0
- data/lib/reap/package-task.rb +165 -0
- data/lib/reap/publish-task.rb +53 -0
- data/lib/reap/rdoc-task.rb +70 -0
- data/lib/reap/reap-all.rb +15 -0
- data/lib/reap/task.rb +177 -118
- data/lib/reap/template-task.rb +40 -0
- data/lib/reap/test-task.rb +159 -0
- data/pub/www/Reapfile +99 -0
- data/pub/www/images/appleboy.jpg +0 -0
- data/pub/www/index.html +49 -5
- data/{doc/files/LICENSE.html → pub/www/rdoc/classes/Reap.html} +32 -33
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +154 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000031.html +111 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000032.html +46 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000017.html +42 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000018.html +26 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +181 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +49 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000002.html +74 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000003.html +51 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.html +160 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +24 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000020.html +38 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +24 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +21 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +53 -0
- data/pub/www/rdoc/classes/Reap/Task.html +319 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000025.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000026.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +28 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000028.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000030.html +19 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.html +182 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000021.html +18 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +21 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +34 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +228 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000009.html +77 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000010.html +27 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000011.html +36 -0
- data/{doc → pub/www/rdoc}/classes/Reap/TestTask/TestResults.html +23 -55
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000013.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000014.html +23 -0
- data/pub/www/rdoc/created.rid +1 -0
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/announce-task_rb.html +3 -3
- data/{doc/files/lib/reap/task_rb.html → pub/www/rdoc/files/lib/reap2/chmod-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/package-task_rb.html +3 -3
- data/pub/www/{doc/files/lib/reap/template_rb.html → rdoc/files/lib/reap2/publish-task_rb.html} +10 -4
- data/pub/www/{doc/files/lib/reap/task_rb.html → rdoc/files/lib/reap2/rdoc-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/reap_rb.html → rdoc/files/lib/reap2/reap-all_rb.html} +7 -7
- data/{doc/files/lib/reap/runner_rb.html → pub/www/rdoc/files/lib/reap2/task_rb.html} +7 -8
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/template-task_rb.html +4 -4
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/test-task_rb.html +10 -4
- data/{doc → pub/www/rdoc}/fr_class_index.html +0 -1
- data/pub/www/rdoc/fr_file_index.html +35 -0
- data/pub/www/rdoc/fr_method_index.html +58 -0
- data/{doc → pub/www/rdoc}/index.html +1 -1
- data/{doc → pub/www/rdoc}/rdoc-style.css +0 -0
- data/test/tc_reap.rb +11 -0
- metadata +98 -112
- data/bin/reap +0 -103
- data/doc/classes/Reap.html +0 -184
- data/doc/classes/Reap/AnnounceTask.html +0 -339
- data/doc/classes/Reap/ChmodTask.html +0 -277
- data/doc/classes/Reap/PackageTask.html +0 -374
- data/doc/classes/Reap/PublishTask.html +0 -237
- data/doc/classes/Reap/RDocTask.html +0 -254
- data/doc/classes/Reap/Runner.html +0 -299
- data/doc/classes/Reap/Task.html +0 -438
- data/doc/classes/Reap/TemplateTask.html +0 -226
- data/doc/classes/Reap/TestTask.html +0 -354
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -194
- data/doc/files/lib/reap/reap_rb.html +0 -111
- data/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/package-task_rb.html +0 -108
- data/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/template-task_rb.html +0 -109
- data/doc/fr_file_index.html +0 -38
- data/doc/fr_method_index.html +0 -73
- data/lib/reap/reap.rb +0 -13
- data/lib/reap/runner.rb +0 -90
- data/lib/reap/tasks/announce-task.rb +0 -149
- data/lib/reap/tasks/chmod-task.rb +0 -69
- data/lib/reap/tasks/package-task.rb +0 -157
- data/lib/reap/tasks/publish-task.rb +0 -39
- data/lib/reap/tasks/rdoc-task.rb +0 -55
- data/lib/reap/tasks/template-task.rb +0 -39
- data/lib/reap/tasks/test-task.rb +0 -140
- data/pub/www/doc/classes/Reap.html +0 -184
- data/pub/www/doc/classes/Reap/AnnounceTask.html +0 -331
- data/pub/www/doc/classes/Reap/ChmodTask.html +0 -278
- data/pub/www/doc/classes/Reap/PackageTask.html +0 -372
- data/pub/www/doc/classes/Reap/PublishTask.html +0 -231
- data/pub/www/doc/classes/Reap/RDocTask.html +0 -254
- data/pub/www/doc/classes/Reap/Runner.html +0 -307
- data/pub/www/doc/classes/Reap/Task.html +0 -390
- data/pub/www/doc/classes/Reap/TemplateTask.html +0 -233
- data/pub/www/doc/classes/Reap/TestTask.html +0 -242
- data/pub/www/doc/created.rid +0 -1
- data/pub/www/doc/files/LICENSE.html +0 -119
- data/pub/www/doc/files/README.html +0 -194
- data/pub/www/doc/files/lib/reap/runner_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/announce-task_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/test-task_rb.html +0 -101
- data/pub/www/doc/fr_class_index.html +0 -36
- data/pub/www/doc/fr_file_index.html +0 -39
- data/pub/www/doc/fr_method_index.html +0 -69
- data/pub/www/doc/index.html +0 -24
- data/pub/www/doc/rdoc-style.css +0 -208
- data/test/tc_require.rb +0 -11
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>init (Reap::TestTask)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 14</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>
|
15
|
+
<span class="ruby-ivar">@libs</span> = ( <span class="ruby-identifier">section</span>[<span class="ruby-value str">"libs"</span>] <span class="ruby-operator">||</span> [<span class="ruby-value str">'lib'</span>] ).<span class="ruby-identifier">join</span>(<span class="ruby-value str">':'</span>)
|
16
|
+
<span class="ruby-ivar">@files</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">"files"</span>] <span class="ruby-operator">||</span> [ <span class="ruby-value str">'test/**/tc*.rb'</span>, <span class="ruby-value str">'test/**/test*.rb'</span>, <span class="ruby-value str">'test/**/*test.rb'</span> ]
|
17
|
+
<span class="ruby-ivar">@options</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'options'</span>]
|
18
|
+
|
19
|
+
<span class="ruby-comment cmt"># interal use</span>
|
20
|
+
<span class="ruby-ivar">@results</span> = <span class="ruby-constant">TestResults</span>.<span class="ruby-identifier">new</span>
|
21
|
+
<span class="ruby-ivar">@errors</span> = []
|
22
|
+
<span class="ruby-ivar">@failures</span> = []
|
23
|
+
<span class="ruby-keyword kw">end</span></pre>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>define (Reap::TestTask)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 25</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">define</span>
|
15
|
+
<span class="ruby-identifier">desc</span> <span class="ruby-value str">"Run unit tests (each in a separate process)."</span>
|
16
|
+
<span class="ruby-identifier">task</span> <span class="ruby-identifier">:test</span> <span class="ruby-keyword kw">do</span>
|
17
|
+
<span class="ruby-identifier">run_testsuite</span>
|
18
|
+
<span class="ruby-keyword kw">end</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run_testsuite (Reap::TestTask)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 32</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_testsuite</span>
|
15
|
+
<span class="ruby-comment cmt"># get test files</span>
|
16
|
+
<span class="ruby-identifier">test_libs</span> = <span class="ruby-ivar">@libs</span>
|
17
|
+
<span class="ruby-identifier">test_files</span> = <span class="ruby-constant">FileList</span>.<span class="ruby-identifier">new</span>
|
18
|
+
<span class="ruby-identifier">test_files</span>.<span class="ruby-identifier">include</span>(<span class="ruby-operator">*</span><span class="ruby-ivar">@files</span>)
|
19
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">test_files</span>.<span class="ruby-identifier">empty?</span>
|
20
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"No test files found."</span>
|
21
|
+
<span class="ruby-keyword kw">return</span>
|
22
|
+
<span class="ruby-keyword kw">end</span>
|
23
|
+
<span class="ruby-identifier">print</span> <span class="ruby-value str">"Reap is shelling out work to Ruby's Test Suite..."</span>
|
24
|
+
|
25
|
+
<span class="ruby-identifier">test_files</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
|
26
|
+
<span class="ruby-identifier">$stdout</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'.'</span>; <span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">flush</span>
|
27
|
+
<span class="ruby-identifier">run_test</span>( <span class="ruby-identifier">f</span> )
|
28
|
+
<span class="ruby-comment cmt">#ruby %{-r"test/unit" "#{f}"}</span>
|
29
|
+
}
|
30
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"done."</span>
|
31
|
+
|
32
|
+
<span class="ruby-comment cmt"># Don't know why empty arrays get in them yet, but...</span>
|
33
|
+
<span class="ruby-ivar">@failures</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span> <span class="ruby-operator">==</span> [] }
|
34
|
+
<span class="ruby-ivar">@errors</span>.<span class="ruby-identifier">reject!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">e</span><span class="ruby-operator">|</span> <span class="ruby-identifier">e</span> <span class="ruby-operator">==</span> [] }
|
35
|
+
|
36
|
+
<span class="ruby-comment cmt"># Display Failures</span>
|
37
|
+
<span class="ruby-identifier">puts</span>
|
38
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{FAILURES:#{@failures.empty? ? ' []' : ''}}</span>
|
39
|
+
<span class="ruby-ivar">@failures</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">fails</span><span class="ruby-operator">|</span>
|
40
|
+
<span class="ruby-identifier">fails</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">failure</span><span class="ruby-operator">|</span>
|
41
|
+
<span class="ruby-identifier">puts</span>
|
42
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ - test : #{failure.test_name}}</span>
|
43
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ location : #{failure.location}}</span>
|
44
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">index</span>(<span class="ruby-value str">"\n"</span>)
|
45
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">%{ message : >}</span>
|
46
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">failure</span>.<span class="ruby-identifier">message</span>.<span class="ruby-identifier">tabto</span>(<span class="ruby-value">6</span>)
|
47
|
+
<span class="ruby-keyword kw">else</span>
|
48
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ message : #{failure.message}}</span>
|
49
|
+
<span class="ruby-keyword kw">end</span>
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
<span class="ruby-comment cmt"># Display Errors</span>
|
54
|
+
<span class="ruby-identifier">puts</span>
|
55
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ERRORS:#{@errors.empty? ? ' []' : ''}}</span>
|
56
|
+
<span class="ruby-ivar">@errors</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">errs</span><span class="ruby-operator">|</span>
|
57
|
+
<span class="ruby-identifier">errs</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">err</span><span class="ruby-operator">|</span>
|
58
|
+
<span class="ruby-identifier">puts</span>
|
59
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ - test : #{err.test_name}}</span>
|
60
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">%{ message : #{err.exception.message}}</span>
|
61
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-value str">%{ backtrace :}</span>
|
62
|
+
<span class="ruby-identifier">err</span>.<span class="ruby-identifier">exception</span>.<span class="ruby-identifier">backtrace</span>[<span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-value">-1</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">bt</span><span class="ruby-operator">|</span> <span class="ruby-identifier">puts</span> <span class="ruby-node">%Q{ - #{bt}}</span> }
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
<span class="ruby-comment cmt"># Display Final Results</span>
|
67
|
+
<span class="ruby-identifier">puts</span>
|
68
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-ivar">@results</span>
|
69
|
+
<span class="ruby-identifier">puts</span>
|
70
|
+
|
71
|
+
<span class="ruby-comment cmt"># old way (don't work right)</span>
|
72
|
+
<span class="ruby-comment cmt">#puts %Q{ ruby %{-I#{test_libs} -e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}} } if $DEBUG</span>
|
73
|
+
<span class="ruby-comment cmt">#ruby %{-I#{test_libs} -e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}}</span>
|
74
|
+
<span class="ruby-comment cmt">#ruby %{-e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}}</span>
|
75
|
+
<span class="ruby-keyword kw">end</span></pre>
|
76
|
+
</body>
|
77
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>run_test (Reap::TestTask)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 95</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run_test</span>( <span class="ruby-identifier">test_file</span> )
|
15
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-identifier">test_file</span> )
|
16
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-keyword kw">nil</span>
|
17
|
+
<span class="ruby-keyword kw">else</span>
|
18
|
+
<span class="ruby-identifier">r</span> = <span class="ruby-identifier">fork_test</span>( <span class="ruby-identifier">test_file</span> )
|
19
|
+
<span class="ruby-keyword kw">end</span>
|
20
|
+
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">passed?</span>
|
21
|
+
<span class="ruby-ivar">@errors</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value str">'@errors'</span>)
|
22
|
+
<span class="ruby-ivar">@failures</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">r</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value str">'@failures'</span>)
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
<span class="ruby-ivar">@results</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">r</span>
|
25
|
+
<span class="ruby-keyword kw">end</span></pre>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>fork_test (Reap::TestTask)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 108</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fork_test</span>( <span class="ruby-identifier">testfile</span> )
|
15
|
+
<span class="ruby-identifier">src</span> = <span class="ruby-node">%Q{
|
16
|
+
#require 'test/unit'
|
17
|
+
require 'test/unit/collector'
|
18
|
+
require 'test/unit/collector/objectspace'
|
19
|
+
require 'test/unit/ui/testrunnermediator'
|
20
|
+
|
21
|
+
load('#{testfile}')
|
22
|
+
tests = Test::Unit::Collector::ObjectSpace.new.collect
|
23
|
+
runner = Test::Unit::UI::TestRunnerMediator.new( tests )
|
24
|
+
result = runner.run_suite
|
25
|
+
puts Marshal.dump(result)
|
26
|
+
}</span>
|
27
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>(<span class="ruby-value str">"ruby"</span>,<span class="ruby-value str">"w+"</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ruby</span><span class="ruby-operator">|</span>
|
28
|
+
<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">src</span>
|
29
|
+
<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">close_write</span>
|
30
|
+
<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">read</span>
|
31
|
+
<span class="ruby-keyword kw">end</span>
|
32
|
+
<span class="ruby-identifier">p</span> <span class="ruby-identifier">testfile</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$VERBOSE</span>
|
33
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-constant">Marshal</span>.<span class="ruby-identifier">load</span>(<span class="ruby-identifier">result</span>)
|
34
|
+
<span class="ruby-keyword kw">end</span></pre>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -55,8 +55,8 @@
|
|
55
55
|
<tr class="top-aligned-row">
|
56
56
|
<td><strong>In:</strong></td>
|
57
57
|
<td>
|
58
|
-
<a href="../../../files/lib/
|
59
|
-
lib/
|
58
|
+
<a href="../../../files/lib/reap2/test-task_rb.html">
|
59
|
+
lib/reap2/test-task.rb
|
60
60
|
</a>
|
61
61
|
<br />
|
62
62
|
</td>
|
@@ -78,6 +78,12 @@
|
|
78
78
|
|
79
79
|
<div id="contextContent">
|
80
80
|
|
81
|
+
<div id="description">
|
82
|
+
<p>
|
83
|
+
Support class for collecting test results
|
84
|
+
</p>
|
85
|
+
|
86
|
+
</div>
|
81
87
|
|
82
88
|
|
83
89
|
</div>
|
@@ -86,9 +92,9 @@
|
|
86
92
|
<h3 class="section-bar">Methods</h3>
|
87
93
|
|
88
94
|
<div class="name-list">
|
89
|
-
<a href="#
|
90
|
-
<a href="#
|
91
|
-
<a href="#
|
95
|
+
<a href="#M000013"><<</a>
|
96
|
+
<a href="#M000012">new</a>
|
97
|
+
<a href="#M000014">to_s</a>
|
92
98
|
</div>
|
93
99
|
</div>
|
94
100
|
|
@@ -138,85 +144,47 @@
|
|
138
144
|
<div id="methods">
|
139
145
|
<h3 class="section-bar">Public Class methods</h3>
|
140
146
|
|
141
|
-
<div id="method-
|
142
|
-
<a name="
|
147
|
+
<div id="method-M000012" class="method-detail">
|
148
|
+
<a name="M000012"></a>
|
143
149
|
|
144
150
|
<div class="method-heading">
|
145
|
-
<a href="
|
151
|
+
<a href="TestResults.src/M000012.html" target="Code" class="method-signature"
|
152
|
+
onclick="popupCode('TestResults.src/M000012.html');return false;">
|
146
153
|
<span class="method-name">new</span><span class="method-args">()</span>
|
147
154
|
</a>
|
148
155
|
</div>
|
149
156
|
|
150
157
|
<div class="method-description">
|
151
|
-
<p><a class="source-toggle" href="#"
|
152
|
-
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
153
|
-
<div class="method-source-code" id="M000016-source">
|
154
|
-
<pre>
|
155
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/test-task.rb, line 116</span>
|
156
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
157
|
-
<span class="ruby-ivar">@assertion_count</span> = <span class="ruby-value">0</span>
|
158
|
-
<span class="ruby-ivar">@run_count</span> = <span class="ruby-value">0</span>
|
159
|
-
<span class="ruby-ivar">@failure_count</span> = <span class="ruby-value">0</span>
|
160
|
-
<span class="ruby-ivar">@error_count</span> = <span class="ruby-value">0</span>
|
161
|
-
<span class="ruby-keyword kw">end</span>
|
162
|
-
</pre>
|
163
|
-
</div>
|
164
158
|
</div>
|
165
159
|
</div>
|
166
160
|
|
167
161
|
<h3 class="section-bar">Public Instance methods</h3>
|
168
162
|
|
169
|
-
<div id="method-
|
170
|
-
<a name="
|
163
|
+
<div id="method-M000013" class="method-detail">
|
164
|
+
<a name="M000013"></a>
|
171
165
|
|
172
166
|
<div class="method-heading">
|
173
|
-
<a href="
|
167
|
+
<a href="TestResults.src/M000013.html" target="Code" class="method-signature"
|
168
|
+
onclick="popupCode('TestResults.src/M000013.html');return false;">
|
174
169
|
<span class="method-name"><<</span><span class="method-args">( result )</span>
|
175
170
|
</a>
|
176
171
|
</div>
|
177
172
|
|
178
173
|
<div class="method-description">
|
179
|
-
<p><a class="source-toggle" href="#"
|
180
|
-
onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
|
181
|
-
<div class="method-source-code" id="M000017-source">
|
182
|
-
<pre>
|
183
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/test-task.rb, line 122</span>
|
184
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>( <span class="ruby-identifier">result</span> )
|
185
|
-
<span class="ruby-ivar">@assertion_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">assertion_count</span>
|
186
|
-
<span class="ruby-ivar">@run_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">run_count</span>
|
187
|
-
<span class="ruby-ivar">@failure_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">failure_count</span>
|
188
|
-
<span class="ruby-ivar">@error_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">error_count</span>
|
189
|
-
<span class="ruby-keyword kw">end</span>
|
190
|
-
</pre>
|
191
|
-
</div>
|
192
174
|
</div>
|
193
175
|
</div>
|
194
176
|
|
195
|
-
<div id="method-
|
196
|
-
<a name="
|
177
|
+
<div id="method-M000014" class="method-detail">
|
178
|
+
<a name="M000014"></a>
|
197
179
|
|
198
180
|
<div class="method-heading">
|
199
|
-
<a href="
|
181
|
+
<a href="TestResults.src/M000014.html" target="Code" class="method-signature"
|
182
|
+
onclick="popupCode('TestResults.src/M000014.html');return false;">
|
200
183
|
<span class="method-name">to_s</span><span class="method-args">()</span>
|
201
184
|
</a>
|
202
185
|
</div>
|
203
186
|
|
204
187
|
<div class="method-description">
|
205
|
-
<p><a class="source-toggle" href="#"
|
206
|
-
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
207
|
-
<div class="method-source-code" id="M000018-source">
|
208
|
-
<pre>
|
209
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/test-task.rb, line 128</span>
|
210
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
211
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-value str">%{SUMMARY:\n\n}</span>
|
212
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ tests : #{@run_count}\n}</span>
|
213
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ assertions : #{@assertion_count}\n}</span>
|
214
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ failures : #{@failure_count}\n}</span>
|
215
|
-
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ errors : #{@error_count}\n}</span>
|
216
|
-
<span class="ruby-identifier">s</span>
|
217
|
-
<span class="ruby-keyword kw">end</span>
|
218
|
-
</pre>
|
219
|
-
</div>
|
220
188
|
</div>
|
221
189
|
</div>
|
222
190
|
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (Reap::TestTask::TestResults)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 135</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
15
|
+
<span class="ruby-ivar">@assertion_count</span> = <span class="ruby-value">0</span>
|
16
|
+
<span class="ruby-ivar">@run_count</span> = <span class="ruby-value">0</span>
|
17
|
+
<span class="ruby-ivar">@failure_count</span> = <span class="ruby-value">0</span>
|
18
|
+
<span class="ruby-ivar">@error_count</span> = <span class="ruby-value">0</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title><< (Reap::TestTask::TestResults)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 141</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator"><<</span>( <span class="ruby-identifier">result</span> )
|
15
|
+
<span class="ruby-ivar">@assertion_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">assertion_count</span>
|
16
|
+
<span class="ruby-ivar">@run_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">run_count</span>
|
17
|
+
<span class="ruby-ivar">@failure_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">failure_count</span>
|
18
|
+
<span class="ruby-ivar">@error_count</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">error_count</span>
|
19
|
+
<span class="ruby-keyword kw">end</span></pre>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>to_s (Reap::TestTask::TestResults)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/reap2/test-task.rb, line 147</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
|
15
|
+
<span class="ruby-identifier">s</span> = <span class="ruby-value str">%{SUMMARY:\n\n}</span>
|
16
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ tests : #{@run_count}\n}</span>
|
17
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ assertions : #{@assertion_count}\n}</span>
|
18
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ failures : #{@failure_count}\n}</span>
|
19
|
+
<span class="ruby-identifier">s</span> <span class="ruby-operator"><<</span> <span class="ruby-node">%{ errors : #{@error_count}\n}</span>
|
20
|
+
<span class="ruby-identifier">s</span>
|
21
|
+
<span class="ruby-keyword kw">end</span></pre>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
Mon Aug 29 15:32:54 EDT 2005
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<title>File: announce-task.rb</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="
|
11
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
12
|
<script type="text/javascript">
|
13
13
|
// <![CDATA[
|
14
14
|
|
@@ -51,12 +51,12 @@
|
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/
|
54
|
+
<td>lib/reap2/announce-task.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Sun Aug 28 12:35:07 EDT 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
8
|
-
<title>File: task.rb</title>
|
8
|
+
<title>File: chmod-task.rb</title>
|
9
9
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
10
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
11
|
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
@@ -47,16 +47,16 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="fileHeader">
|
50
|
-
<h1>task.rb</h1>
|
50
|
+
<h1>chmod-task.rb</h1>
|
51
51
|
<table class="header-table">
|
52
52
|
<tr class="top-aligned-row">
|
53
53
|
<td><strong>Path:</strong></td>
|
54
|
-
<td>lib/
|
54
|
+
<td>lib/reap2/chmod-task.rb
|
55
55
|
</td>
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Mon Aug 29 15:24:12 EDT 2005</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
<h3 class="section-bar">Required files</h3>
|
74
74
|
|
75
75
|
<div class="name-list">
|
76
|
-
|
76
|
+
reap2/task
|
77
77
|
</div>
|
78
78
|
</div>
|
79
79
|
|