Sha256: a20be935e310a1f75377f0c1fc29647e70380dc7a213a41a169ea793c5f2b7ab

Contents?: true

Size: 469 Bytes

Versions: 12

Compression:

Stored size: 469 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2022, by Samuel Williams.
# Copyright, 2022, by Adam Daniels.

require_relative 'config'

require 'minitest'

$covered = Covered::Config.load

module Covered
	module Minitest
		def run(*)
			$covered.enable
			
			super
		end
	end
end

if $covered.record?
	class << Minitest
		prepend Covered::Minitest
	end
	
	Minitest.after_run do
		$covered.disable
		$covered.call($stderr)
	end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
covered-0.19.1 lib/covered/minitest.rb
covered-0.19.0 lib/covered/minitest.rb
covered-0.18.5 lib/covered/minitest.rb
covered-0.18.4 lib/covered/minitest.rb
covered-0.18.3 lib/covered/minitest.rb
covered-0.18.2 lib/covered/minitest.rb
covered-0.18.1 lib/covered/minitest.rb
covered-0.18.0 lib/covered/minitest.rb
covered-0.17.1 lib/covered/minitest.rb
covered-0.17.0 lib/covered/minitest.rb
covered-0.16.9 lib/covered/minitest.rb
covered-0.16.8 lib/covered/minitest.rb