Sha256: cee33f46817b78a832c45033ef66deddbe43412bd0bbc4ed83484154e8e21a54
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require 'bundler/gem_tasks' task :default => :test task :test do matchers = { 'minitest-2.0' => [/6 tests, 9 assertions, 1 failures, 0 errors, 0 skips/m], 'rspec-2.6' => [/\n\.\.\.\.F\.\n/m], 'test-unit' => [/\n\.\.\.F\.\.\n/m, /test_out_of_order\(TestEMVentually\)/m] } matchers.each do |type, matcher| STDOUT.sync = true Dir.chdir("./test/#{type}") do print "Testing #{type}#{' ' * (22 - type.size )}" fork { ENV['BUNDLE_GEMFILE'] = File.expand_path("./Gemfile") out = `bundle && bundle exec rake 2>&1` if matcher.all?{|m|out[m]} exit else puts out exit 1 end } _, status = Process.wait2 puts status.success? ? "PASSED" : "FAILED" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
em-ventually-0.0.1 | Rakefile |