Sha256: e75d3f1ea196fd1c947115b29f942101bbb719fc71a267f7c6fe4590f369c436

Contents?: true

Size: 1.02 KB

Versions: 101

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_profile('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

101 entries across 101 versions & 3 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 .simplecov
metasploit_data_models-6.0.5 .simplecov
metasploit_data_models-6.0.4 .simplecov
metasploit_data_models-6.0.3 .simplecov
metasploit-model-5.0.2 .simplecov
metasploit-model-5.0.1 .simplecov
metasploit_data_models-6.0.2 .simplecov
metasploit_data_models-6.0.1 .simplecov
metasploit_data_models-6.0.0 .simplecov
metasploit-model-5.0.0 .simplecov
metasploit_data_models-5.0.6 .simplecov
metasploit-model-4.0.6 .simplecov
metasploit-model-4.0.5 .simplecov
metasploit-model-4.0.4 .simplecov
metasploit_data_models-5.0.5 .simplecov
metasploit-model-4.0.3 .simplecov
metasploit_data_models-5.0.4 .simplecov
metasploit_data_models-5.0.3 .simplecov
metasploit_data_models-5.0.2 .simplecov
metasploit_data_models-5.0.1 .simplecov