spec: vendored_gems coverage result merge with canvas
Change-Id: Ic2bd9a9045da4aa417f60b66ef08ca9d470ec2bb Reviewed-on: https://gerrit.instructure.com/30829 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Bryan Madsen <bryan@instructure.com> Product-Review: Bryan Madsen <bryan@instructure.com> QA-Review: Bryan Madsen <bryan@instructure.com>
This commit is contained in:
parent
55a346fcee
commit
19a27ae758
|
@ -6,6 +6,8 @@ if ENV['COVERAGE'] == "1"
|
||||||
SimpleCov.command_name "RSpec:#{Process.pid}#{ENV['TEST_ENV_NUMBER']}"
|
SimpleCov.command_name "RSpec:#{Process.pid}#{ENV['TEST_ENV_NUMBER']}"
|
||||||
|
|
||||||
SimpleCov.start do
|
SimpleCov.start do
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
class SimpleCov::Formatter::MergedFormatter
|
class SimpleCov::Formatter::MergedFormatter
|
||||||
def format(result)
|
def format(result)
|
||||||
SimpleCov::Formatter::HTMLFormatter.new.format(result)
|
SimpleCov::Formatter::HTMLFormatter.new.format(result)
|
||||||
|
@ -23,9 +25,12 @@ if ENV['COVERAGE'] == "1"
|
||||||
add_group 'Models', 'app/models'
|
add_group 'Models', 'app/models'
|
||||||
add_group 'Services', 'app/services'
|
add_group 'Services', 'app/services'
|
||||||
add_group 'App', '/app/'
|
add_group 'App', '/app/'
|
||||||
|
add_group 'Gems', 'gems/'
|
||||||
add_group 'Helpers', 'app/helpers'
|
add_group 'Helpers', 'app/helpers'
|
||||||
add_group 'Libraries', '/lib/'
|
add_group 'Libraries', '/lib/'
|
||||||
add_group 'Plugins', 'vendor/plugins'
|
add_group 'Plugins', 'vendor/plugins'
|
||||||
|
add_group 'Db', '/db/'
|
||||||
|
|
||||||
add_group "Long files" do |src_file|
|
add_group "Long files" do |src_file|
|
||||||
src_file.lines.count > 500
|
src_file.lines.count > 500
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,19 +5,21 @@
|
||||||
#
|
#
|
||||||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
||||||
|
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('activesupport-suspend-callback-gem')
|
SimpleCov.command_name('activesupport-suspend-callback-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require "active_support/callbacks/suspension"
|
require "active_support/callbacks/suspension"
|
||||||
|
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||||
config.run_all_when_everything_filtered = true
|
config.run_all_when_everything_filtered = true
|
||||||
|
|
|
@ -5,19 +5,21 @@
|
||||||
#
|
#
|
||||||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
||||||
|
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('adheres-to-policy-gem')
|
SimpleCov.command_name('adheres-to-policy-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require 'adheres_to_policy'
|
require 'adheres_to_policy'
|
||||||
|
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||||
config.run_all_when_everything_filtered = true
|
config.run_all_when_everything_filtered = true
|
||||||
|
|
|
@ -7,18 +7,21 @@
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('canvas-breach-mitigation-gem')
|
SimpleCov.command_name('canvas-breach-mitigation-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require "canvas_breach_mitigation"
|
require "canvas_breach_mitigation"
|
||||||
require 'securerandom'
|
require 'securerandom'
|
||||||
require 'base64'
|
require 'base64'
|
||||||
|
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||||
config.run_all_when_everything_filtered = true
|
config.run_all_when_everything_filtered = true
|
||||||
|
|
|
@ -25,17 +25,20 @@
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('canvas-cassandra-gem')
|
SimpleCov.command_name('canvas-cassandra-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require "canvas_cassandra"
|
require "canvas_cassandra"
|
||||||
require "yaml"
|
require "yaml"
|
||||||
|
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||||
config.run_all_when_everything_filtered = true
|
config.run_all_when_everything_filtered = true
|
||||||
|
|
|
@ -7,12 +7,16 @@
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('canvas-mimetype-fu-gem')
|
SimpleCov.command_name('canvas-mimetype-fu-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
require "canvas_mimetype_fu"
|
require "canvas_mimetype_fu"
|
||||||
|
|
|
@ -7,14 +7,18 @@
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
SimpleCov.command_name('html-text-helper-spec-gem')
|
|
||||||
SimpleCov.start('test_frameworks')
|
|
||||||
require 'html_text_helper'
|
|
||||||
|
|
||||||
|
SimpleCov.command_name('html-text-helper-spec-gem')
|
||||||
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
require 'html_text_helper'
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||||
|
|
|
@ -7,16 +7,19 @@
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'simplecov-rcov'
|
require 'simplecov-rcov'
|
||||||
SimpleCov.coverage_dir('../../coverage')
|
|
||||||
SimpleCov.at_exit {
|
|
||||||
SimpleCov.result
|
|
||||||
}
|
|
||||||
|
|
||||||
SimpleCov.command_name('lti_outbound-gem')
|
SimpleCov.command_name('lti_outbound-gem')
|
||||||
SimpleCov.start('test_frameworks')
|
SimpleCov.start('test_frameworks') do
|
||||||
|
SimpleCov.coverage_dir('../../coverage')
|
||||||
|
SimpleCov.use_merging
|
||||||
|
SimpleCov.merge_timeout(10000)
|
||||||
|
SimpleCov.at_exit {
|
||||||
|
SimpleCov.result
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
require 'lti_outbound'
|
require 'lti_outbound'
|
||||||
|
|
||||||
Dir.glob("#{File.dirname(__FILE__).gsub(/\\/, "/")}/shared_examples/*.rb").each { |file| require file }
|
Dir.glob("#{File.dirname(__FILE__).gsub(/\\/, "/")}/shared_examples/*.rb").each { |file| require file }
|
||||||
Dir.glob("#{File.dirname(__FILE__).gsub(/\\/, "/")}/support/*.rb").each { |file| require file }
|
Dir.glob("#{File.dirname(__FILE__).gsub(/\\/, "/")}/support/*.rb").each { |file| require file }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue