Sha256: c83bfa68a7a0c8b27a400c9ace8720efb5a3cdf8ad3ddc6ece781e26363a5647

Contents?: true

Size: 1.02 KB

Versions: 143

Compression:

Stored size: 1.02 KB

Contents

# RM_INFO is set when using Rubymine.  In Rubymine, starting SimpleCov is
# controlled by running with coverage, so don't explicitly start coverage (and
# therefore generate a report) when in Rubymine.  This _will_ generate a report
# whenever `rake spec` is run.
unless ENV['RM_INFO']
	SimpleCov.start
end

SimpleCov.configure do
  load_adapter('rails')

  # ignore this file
	add_filter '.simplecov'

	#
	# Changed Files in Git Group
	# @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
	#

	untracked = `git ls-files --exclude-standard --others`
	unstaged = `git diff --name-only`
	staged = `git diff --name-only --cached`
	all = untracked + unstaged + staged
	changed_filenames = all.split("\n")

	add_group 'Changed' do |source_file|
		changed_filenames.detect { |changed_filename|
			source_file.filename.end_with?(changed_filename)
		}
	end

	#
	# Specs are reported on to ensure that all examples are being run and all
	# lets, befores, afters, etc are being used.
	#

	add_group 'Specs', 'spec'
end

Version data entries

143 entries across 143 versions & 2 rubygems

Version Path
metasploit_data_models-0.24.5 .simplecov
metasploit_data_models-0.24.4 .simplecov
metasploit_data_models-0.24.3 .simplecov
metasploit_data_models-0.24.2 .simplecov
metasploit_data_models-0.24.1.pre.rspec.pre.3.pre.1 .simplecov
metasploit_data_models-0.24.1 .simplecov
metasploit_data_models-0.24.0 .simplecov
metasploit_data_models-0.23.3.pre.autoload .simplecov
metasploit_data_models-0.23.2 .simplecov
metasploit_data_models-0.23.2-java .simplecov
metasploit_data_models-0.23.1 .simplecov
metasploit_data_models-0.23.1-java .simplecov
metasploit_data_models-0.23.0 .simplecov
metasploit_data_models-0.23.0-java .simplecov
metasploit_data_models-0.22.8 .simplecov
metasploit_data_models-0.22.8-java .simplecov
metasploit-model-0.29.0 .simplecov
metasploit-model-0.29.0-java .simplecov
metasploit_data_models-0.22.7 .simplecov
metasploit_data_models-0.22.7-java .simplecov