Sha256: f03eb28a33ac526abefded26c0d28c03d98d876b4b220a00fb0ae306e8f33b16

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

require "minitest"
require "flog"

module Minitest
  def self.plugin_flog_options(opts, options)
    opts.on "-f", "--flog", "Display a detailed Flog report output" do |f|
      options[:flog] = true
    end
  end

  def self.plugin_flog_init(options)
    if options[:flog]
      self.reporter << Minitest::Flog::Reporter.new(options[:io], options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minitest-flog-0.1.0 lib/minitest/flog_plugin.rb