Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added timings to the multitest runner

+ adds --client when running JRuby
  • Loading branch information...
commit e70e2e02460dfc95f0c0d0962263c7f6f6130059 1 parent cb71679
Theo Hultberg authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 tasks/spec.rake
11 tasks/spec.rake
View
@@ -17,12 +17,19 @@ desc 'Run specs and integration specs in all available versions of Ruby'
task :multitest do
['ruby', 'ruby1.9', 'jruby'].each do |r|
if %x(which #{r}) && $?.success?
+ started_at = Time.now
+
$stderr.print "#{r}... "
- output = %x(#{r} -S rake spec intg_spec 2>&1)
+ cmd = r
+ cmd += ' --client' if cmd == 'jruby'
+
+ output = %x(#{cmd} -S rake spec intg_spec 2>&1)
if $?.success?
- $stderr.puts 'done'
+ time_taken = ((Time.now.to_f - started_at.to_f) * 10).round/10.0
+
+ $stderr.puts "done (#{time_taken} s)"
else
$stderr.puts 'failed:'
$stderr.puts output
Please sign in to comment.
Something went wrong with that request. Please try again.