fUnit 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +17 -17
- data/Rakefile +7 -2
- data/docs/html/classes/Funit/TestSuite.html +1 -1
- data/docs/html/created.rid +1 -1
- data/docs/html/files/COPYING.html +1 -1
- data/docs/html/files/README.html +25 -22
- data/docs/html/files/lib/funit/assertions_rb.html +1 -1
- data/docs/html/files/lib/funit/fortran_deps_rb.html +1 -1
- data/docs/html/files/lib/funit/functions_rb.html +1 -1
- data/docs/html/files/lib/funit/test_suite_rb.html +1 -1
- data/docs/html/files/lib/funit_rb.html +1 -1
- data/lib/funit/test_suite.rb +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -82,10 +82,8 @@ and run the tests. A sample output would look like,
|
|
82
82
|
|
83
83
|
== Support
|
84
84
|
|
85
|
-
|
85
|
+
Please send an email to
|
86
86
|
{funit-support@rubyforge.org}[mailto:funit-support@rubyforge.org]
|
87
|
-
or submit a request through
|
88
|
-
{the tracking system}[http://rubyforge.org/tracker/?group_id=1416].
|
89
87
|
|
90
88
|
== License
|
91
89
|
|
@@ -101,31 +99,33 @@ See COPYING[http://funit.rubyforge.org/files/COPYING.html] for details.
|
|
101
99
|
On October 4, 2001, Mike Hill (then of
|
102
100
|
{Object Mentor}[http://www.objectmentor.com/], now of
|
103
101
|
{Industrial Logic}[http://www.industriallogic.com])
|
104
|
-
visited NASA Langley Research Center
|
105
|
-
and gave a test-first design talk at
|
106
|
-
and Applied Sciences and Engineering (ICASE).
|
107
|
-
slides are available at
|
102
|
+
visited {NASA Langley Research Center}[http://www.larc.nasa.gov]
|
103
|
+
in Hampton, Virginia and gave a test-first design talk at the
|
104
|
+
{Institute for Computer and Applied Sciences and Engineering (ICASE)}[http://www.icase.edu].
|
105
|
+
Copies of his slides are available at
|
108
106
|
{icase.edu/series/MPP}[http://www.icase.edu/series/MPP/].
|
109
107
|
|
110
108
|
Mike spent the afternoon with Bil Kleb, Bill Wood, Karen Bibb,
|
111
109
|
and Mike Park reasoning out how we might create a testing framework
|
112
110
|
for Fortran 90 to use during FUN3D[http://fun3d.larc.nasa.gov]
|
113
111
|
code development. By the end of the afternoon we had a working
|
114
|
-
|
112
|
+
prototype based on the macro expansion techniques employed in
|
115
113
|
Mike Hill's cpptestkit[http://sourceforge.net/projects/cpptestkit].
|
116
|
-
We quickly found C-preprocessor macros to be
|
117
|
-
rewrote the framework in Ruby[http
|
114
|
+
We quickly found C-preprocessor macros to be too restrictive and
|
115
|
+
rewrote the framework in Ruby[http://www.ruby-lang.org].
|
118
116
|
|
119
117
|
== To Do
|
120
118
|
|
121
|
-
*
|
122
|
-
* Complete migration from CamelCase to snake_case for methods and variables.
|
119
|
+
* Rename assertions to more consistent with other xUnits.
|
123
120
|
* Use 'test' keyword instead of 'beginTest' business.
|
124
|
-
* Don't add to test name during translation to avoid
|
121
|
+
* Don't add to test name during translation to avoid
|
125
122
|
Fortran's 32-character limit on names.
|
126
|
-
*
|
127
|
-
|
123
|
+
* Add some command line options (especially <tt>clean</tt>), possibly using
|
124
|
+
CmdParse[http://cmdparse.rubyforge.org].
|
125
|
+
* Add assertions that capture stops, warning messages, and other exits.
|
126
|
+
* Use Rails RDoc template for the documentation.
|
127
|
+
* Complete migration from CamelCase to snake_case for methods and variables.
|
128
|
+
* For compilation, use a makefile instead of a single, ordered command line.
|
128
129
|
* To increase portability, create a single, stand-alone executable with
|
129
130
|
Erik Veenstra's RubyScript2Exe[http://www.erikveen.dds.nl/rubyscript2exe/].
|
130
|
-
*
|
131
|
-
* Add some command line options and usage.
|
131
|
+
* Make funit self-tests fail gracefully if Fortran compiler is not found.
|
data/Rakefile
CHANGED
@@ -20,7 +20,7 @@ require 'rake/testtask'
|
|
20
20
|
require 'rake/rdoctask'
|
21
21
|
require 'rake/clean'
|
22
22
|
|
23
|
-
PKG_VERSION = '0.1.
|
23
|
+
PKG_VERSION = '0.1.3'
|
24
24
|
|
25
25
|
PKG_FILES = FileList[
|
26
26
|
'[A-Z]*',
|
@@ -36,7 +36,12 @@ CLEAN.include( "**/*_fun.f90", "examples/**/TestRunner*",
|
|
36
36
|
"**/*.o", "**/*.mod", "**/*.MOD")
|
37
37
|
|
38
38
|
desc 'Default task'
|
39
|
-
task :default => [:
|
39
|
+
task :default => [:tasks]
|
40
|
+
|
41
|
+
task :tasks do
|
42
|
+
Rake.application.options.show_task_pattern = //
|
43
|
+
Rake.application.display_tasks_and_comments
|
44
|
+
end
|
40
45
|
|
41
46
|
rd = Rake::RDocTask.new do |rdoc|
|
42
47
|
rdoc.main = 'README'
|
@@ -141,7 +141,7 @@
|
|
141
141
|
<span class="ruby-ivar">@lineNumber</span> = <span class="ruby-value str">'blank'</span>
|
142
142
|
<span class="ruby-ivar">@suiteName</span> = <span class="ruby-identifier">suiteName</span>
|
143
143
|
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">funit_exists?</span>(<span class="ruby-identifier">suiteName</span>)
|
144
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">suiteName</span><span class="ruby-operator">+</span><span class="ruby-value str">"
|
144
|
+
<span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">suiteName</span><span class="ruby-operator">+</span><span class="ruby-value str">"_fun.f90"</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">suiteName</span><span class="ruby-operator">+</span><span class="ruby-value str">"_fun.f90"</span>)
|
145
145
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">suiteName</span><span class="ruby-operator">+</span><span class="ruby-value str">"_fun.f90"</span>,<span class="ruby-value str">"w"</span>)
|
146
146
|
<span class="ruby-ivar">@tests</span>, <span class="ruby-ivar">@setup</span>, <span class="ruby-ivar">@teardown</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>, <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>, <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>
|
147
147
|
<span class="ruby-identifier">topWrapper</span>
|
data/docs/html/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Wed Jun 21 08:23:30 MDT 2006
|
data/docs/html/files/README.html
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
</tr>
|
57
57
|
<tr class="top-aligned-row">
|
58
58
|
<td><strong>Last Update:</strong></td>
|
59
|
-
<td>
|
59
|
+
<td>Thu May 18 16:05:44 MDT 2006</td>
|
60
60
|
</tr>
|
61
61
|
</table>
|
62
62
|
</div>
|
@@ -171,10 +171,8 @@ and run the tests. A sample output would look like,
|
|
171
171
|
</pre>
|
172
172
|
<h2>Support</h2>
|
173
173
|
<p>
|
174
|
-
|
174
|
+
Please send an email to <a
|
175
175
|
href="mailto:funit-support@rubyforge.org">funit-support@rubyforge.org</a>
|
176
|
-
or submit a request through <a
|
177
|
-
href="http://rubyforge.org/tracker/?group_id=1416">the tracking system</a>.
|
178
176
|
</p>
|
179
177
|
<h2>License</h2>
|
180
178
|
<p>
|
@@ -190,28 +188,26 @@ details.
|
|
190
188
|
<p>
|
191
189
|
On October 4, 2001, Mike Hill (then of <a
|
192
190
|
href="http://www.objectmentor.com/">Object Mentor</a>, now of <a
|
193
|
-
href="http://www.industriallogic.com">Industrial Logic</a>) visited
|
194
|
-
Langley Research Center in
|
195
|
-
|
196
|
-
|
191
|
+
href="http://www.industriallogic.com">Industrial Logic</a>) visited <a
|
192
|
+
href="http://www.larc.nasa.gov">NASA Langley Research Center</a> in
|
193
|
+
Hampton, Virginia and gave a test-first design talk at the <a
|
194
|
+
href="http://www.icase.edu">Institute for Computer and Applied Sciences and
|
195
|
+
Engineering (ICASE)</a>. Copies of his slides are available at <a
|
197
196
|
href="http://www.icase.edu/series/MPP/">icase.edu/series/MPP</a>.
|
198
197
|
</p>
|
199
198
|
<p>
|
200
199
|
Mike spent the afternoon with Bil Kleb, Bill Wood, Karen Bibb, and Mike
|
201
200
|
Park reasoning out how we might create a testing framework for Fortran 90
|
202
201
|
to use during <a href="http://fun3d.larc.nasa.gov">FUN3D</a> code
|
203
|
-
development. By the end of the afternoon we had a working
|
204
|
-
the macro expansion techniques employed in Mike Hill’s <a
|
202
|
+
development. By the end of the afternoon we had a working prototype based
|
203
|
+
on the macro expansion techniques employed in Mike Hill’s <a
|
205
204
|
href="http://sourceforge.net/projects/cpptestkit">cpptestkit</a>. We
|
206
|
-
quickly found C-preprocessor macros to be
|
207
|
-
framework in <a href="http
|
205
|
+
quickly found C-preprocessor macros to be too restrictive and rewrote the
|
206
|
+
framework in <a href="http://www.ruby-lang.org">Ruby</a>.
|
208
207
|
</p>
|
209
208
|
<h2>To Do</h2>
|
210
209
|
<ul>
|
211
|
-
<li>
|
212
|
-
|
213
|
-
</li>
|
214
|
-
<li>Complete migration from CamelCase to snake_case for methods and variables.
|
210
|
+
<li>Rename assertions to more consistent with other xUnits.
|
215
211
|
|
216
212
|
</li>
|
217
213
|
<li>Use ‘test’ keyword instead of ‘beginTest’ business.
|
@@ -221,10 +217,20 @@ framework in <a href="http:www.ruby-lang.org">Ruby</a>.
|
|
221
217
|
32-character limit on names.
|
222
218
|
|
223
219
|
</li>
|
224
|
-
<li>
|
220
|
+
<li>Add some command line options (especially <tt>clean</tt>), possibly using
|
221
|
+
<a href="http://cmdparse.rubyforge.org">CmdParse</a>.
|
222
|
+
|
223
|
+
</li>
|
224
|
+
<li>Add assertions that capture stops, warning messages, and other exits.
|
225
225
|
|
226
226
|
</li>
|
227
|
-
<li>
|
227
|
+
<li>Use Rails RDoc template for the documentation.
|
228
|
+
|
229
|
+
</li>
|
230
|
+
<li>Complete migration from CamelCase to snake_case for methods and variables.
|
231
|
+
|
232
|
+
</li>
|
233
|
+
<li>For compilation, use a makefile instead of a single, ordered command line.
|
228
234
|
|
229
235
|
</li>
|
230
236
|
<li>To increase portability, create a single, stand-alone executable with Erik
|
@@ -232,10 +238,7 @@ Veenstra’s <a
|
|
232
238
|
href="http://www.erikveen.dds.nl/rubyscript2exe/">RubyScript2Exe</a>.
|
233
239
|
|
234
240
|
</li>
|
235
|
-
<li>
|
236
|
-
|
237
|
-
</li>
|
238
|
-
<li>Add some command line options and usage.
|
241
|
+
<li>Make funit self-tests fail gracefully if Fortran compiler is not found.
|
239
242
|
|
240
243
|
</li>
|
241
244
|
</ul>
|
data/lib/funit/test_suite.rb
CHANGED
@@ -25,7 +25,7 @@ module Funit
|
|
25
25
|
@lineNumber = 'blank'
|
26
26
|
@suiteName = suiteName
|
27
27
|
return nil unless funit_exists?(suiteName)
|
28
|
-
File.delete(suiteName+".
|
28
|
+
File.delete(suiteName+"_fun.f90") if File.exists?(suiteName+"_fun.f90")
|
29
29
|
super(suiteName+"_fun.f90","w")
|
30
30
|
@tests, @setup, @teardown = Array.new, Array.new, Array.new
|
31
31
|
topWrapper
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fUnit
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.1.3
|
7
|
+
date: 2006-06-21 00:00:00 -06:00
|
8
8
|
summary: A Fortran Unit Testing Framework
|
9
9
|
require_paths:
|
10
10
|
- lib
|