Sha256: fbb286fe17a650f327814823de6236034883d03c6c98fa7951e89cc83822a5f3

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

module M
  module Runners
    class Minitest5 < Base
      def suites
        if Minitest.respond_to?(:seed)
          Minitest.seed = (ENV["SEED"] || srand).to_i % 0xFFFF
        end
        Minitest::Runnable.runnables
      end

      def run(test_arguments)
        output = Minitest.run test_arguments
        ::Minitest.class_variable_get(:@@after_run).reverse_each(&:call)
        output
      end

      def test_methods(suite_class)
        suite_class.runnable_methods
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
m-1.6.1 lib/m/runners/minitest_5.rb