fUnit 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
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
- Send email to
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 in Hampton, Virginia
105
- and gave a test-first design talk at Institute for Computer
106
- and Applied Sciences and Engineering (ICASE). Copies of his
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
- protoype based on the macro expansion techniques employed in
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 to restrictive and
117
- rewrote the framework in Ruby[http:www.ruby-lang.org].
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
- * Make tests fail gracefully if Fortran compiler is not found.
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
- * Rename assertions to more consistent with other xUnits.
127
- * Add assertions to capture stops and warning messages.
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
- * Use a makefile instead of a single, ordered command line for compilation.
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.2'
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 => [:test]
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">&quot;.fun&quot;</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">&quot;_fun.f90&quot;</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">&quot;_fun.f90&quot;</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">&quot;_fun.f90&quot;</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">&quot;_fun.f90&quot;</span>,<span class="ruby-value str">&quot;w&quot;</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>
@@ -1 +1 @@
1
- Tue Apr 18 09:40:12 EDT 2006
1
+ Wed Jun 21 08:23:30 MDT 2006
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Apr 13 15:26:02 EDT 2006</td>
59
+ <td>Thu Apr 13 13:26:02 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Tue Apr 18 09:40:02 EDT 2006</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
- Send email to <a
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 NASA
194
- Langley Research Center in Hampton, Virginia and gave a test-first design
195
- talk at Institute for Computer and Applied Sciences and Engineering
196
- (ICASE). Copies of his slides are available at <a
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 protoype based on
204
- the macro expansion techniques employed in Mike Hill&#8217;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&#8217;s <a
205
204
  href="http://sourceforge.net/projects/cpptestkit">cpptestkit</a>. We
206
- quickly found C-preprocessor macros to be to restrictive and rewrote the
207
- framework in <a href="http:www.ruby-lang.org">Ruby</a>.
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>Make tests fail gracefully if Fortran compiler is not found.
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 &#8216;test&#8217; keyword instead of &#8216;beginTest&#8217; 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>Rename assertions to more consistent with other xUnits.
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>Add assertions to capture stops and warning messages.
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&#8217;s <a
232
238
  href="http://www.erikveen.dds.nl/rubyscript2exe/">RubyScript2Exe</a>.
233
239
 
234
240
  </li>
235
- <li>Use a makefile instead of a single, ordered command line for compilation.
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>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Mon Apr 17 19:41:43 EDT 2006</td>
59
+ <td>Mon Apr 17 17:41:43 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Apr 13 15:32:36 EDT 2006</td>
59
+ <td>Thu Apr 13 13:32:36 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Tue Apr 18 08:25:03 EDT 2006</td>
59
+ <td>Tue Apr 18 06:25:03 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Tue Apr 18 08:25:16 EDT 2006</td>
59
+ <td>Wed Jun 21 08:17:37 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Sat Apr 15 16:31:38 EDT 2006</td>
59
+ <td>Sat Apr 15 14:31:38 MDT 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -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+".fun") if File.exists?(suiteName+"_fun.f90")
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.2
7
- date: 2006-04-18 00:00:00 -04:00
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