Sha256: 09afa61104927828194cb6ad936a7eae288da3f2ce5cf761eb4eed529fb8a280

Contents?: true

Size: 532 Bytes

Versions: 16

Compression:

Stored size: 532 Bytes

Contents

require 'minitest/unit'

class MiniTestUnitRunner < MiniTest::Unit
  def puts(*args);  end
  def print(*args); end
  def status(io = output);  end
end

class MiniTestRunner
  class << self
    def run_file(filename)
      forget_previous_tests
      MiniTest::Unit.runner = MiniTestUnitRunner.new
      load filename
      MiniTest::Unit.runner.run

      MiniTest::Unit.runner.report
    end

    def runner
      :minitest
    end

    private

    def forget_previous_tests
      MiniTest::Unit::TestCase.reset
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gorgon-0.6.2 lib/gorgon/mini_test_runner.rb
gorgon-0.6.1 lib/gorgon/mini_test_runner.rb
gorgon-0.6.0 lib/gorgon/mini_test_runner.rb
gorgon-0.6.0.rc2 lib/gorgon/mini_test_runner.rb
gorgon-0.6.0.rc1 lib/gorgon/mini_test_runner.rb
gorgon-0.5.0.rc1 lib/gorgon/mini_test_runner.rb
gorgon-0.4.5 lib/gorgon/mini_test_runner.rb
gorgon-0.4.5.rc1 lib/gorgon/mini_test_runner.rb
gorgon-0.4.4 lib/gorgon/mini_test_runner.rb
gorgon-0.4.3 lib/gorgon/mini_test_runner.rb
gorgon-0.4.2 lib/gorgon/mini_test_runner.rb
gorgon-0.4.1 lib/gorgon/mini_test_runner.rb
gorgon-0.4.1.rc1 lib/gorgon/mini_test_runner.rb
gorgon-0.4.0 lib/gorgon/mini_test_runner.rb
gorgon-0.4.0.rc2 lib/gorgon/mini_test_runner.rb
gorgon-0.4.0.rc1 lib/gorgon/mini_test_runner.rb