module Covered::Sus

def after_tests(assertions)

def after_tests(assertions)
	super(assertions)
	
	if @covered&.record?
		@covered.disable
		@covered.call(self.output.io)
	end
end

def initialize(...)

def initialize(...)
	super
	
	# Defer loading the coverage configuration unless we are actually running with coverage enabled to avoid performance cost/overhead.
	if ENV['COVERAGE']
		require_relative 'config'
		
		@covered = Covered::Config.load(root: self.root)
		if @covered.record?
			@covered.enable
		end
	else
		@covered = nil
	end
end