Sha256: 096efda573a6da37d04b6d5a06457c4515f58bd0bbc88193fa94d9e1b83bf156

Contents?: true

Size: 467 Bytes

Versions: 6

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true

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

require_relative 'config'

require 'minitest'

$covered = Covered::Config.load

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
covered-0.22.1 lib/covered/minitest.rb
covered-0.22.0 lib/covered/minitest.rb
covered-0.21.0 lib/covered/minitest.rb
covered-0.20.2 lib/covered/minitest.rb
covered-0.20.1 lib/covered/minitest.rb
covered-0.20.0 lib/covered/minitest.rb