Sha256: 732f5518be09f5f68720c4c5ef77d4665fd14c20651e7452c6abb7cc2d19b2f6

Contents?: true

Size: 468 Bytes

Versions: 8

Compression:

Stored size: 468 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?
	Minitest.singleton_class.prepend(Covered::Minitest)
	
	Minitest.after_run do
		$covered.finish
		$covered.call($stderr)
	end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
covered-0.26.0 lib/covered/minitest.rb
covered-0.25.1 lib/covered/minitest.rb
covered-0.25.0 lib/covered/minitest.rb
covered-0.24.3 lib/covered/minitest.rb
covered-0.24.2 lib/covered/minitest.rb
covered-0.24.1 lib/covered/minitest.rb
covered-0.24.0 lib/covered/minitest.rb
covered-0.23.0 lib/covered/minitest.rb