Permalink
Browse files

explicitly return from run() under minitest (metrics were printed wit…

…h the previous solution)
  • Loading branch information...
1 parent aec7456 commit 181c8422d776bb85cb18a7023d3524307a31417c @goncalossilva goncalossilva committed May 8, 2011
@@ -51,6 +51,8 @@ def run(runner)
end
end
end
+
+ return
end
def run_test(metric, mode)
@@ -10,7 +10,7 @@ module Testing
module Performance
DEFAULTS.merge!(
if ARGV.include?('--benchmark')
- {:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}
+ { :metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time] }
else
{ :min_percent => 0.01,
:metrics => [:process_time, :memory, :objects],

0 comments on commit 181c842

Please sign in to comment.