Sha256: 35c4ba750f51b8d6eb5a41b455a46b9e0964d6b7f374cd5df4df1a3aac56c977

Contents?: true

Size: 653 Bytes

Versions: 8

Compression:

Stored size: 653 Bytes

Contents

require 'simplecov'
require 'coveralls'
require 'codeclimate-test-reporter'
require 'pry'

CodeClimate::TestReporter.configure do |config|
  config.logger.level = Logger::WARN
end

formatters = [
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

if ENV['CODECLIMATE_REPO_TOKEN']
  formatters << CodeClimate::TestReporter::Formatter
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[*formatters]
SimpleCov.coverage_dir 'log/coverage/rspec'
SimpleCov.start do
  add_filter 'vendor'
  add_filter 'spec'
end

def production_code
  spec = caller[0][/spec.+\.rb/]
  './' + spec.gsub('_spec','').gsub(/spec/, 'lib')
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
snmpjr-0.3.3-java spec/spec_helper.rb
snmpjr-0.3.2-java spec/spec_helper.rb
snmpjr-0.3.1-java spec/spec_helper.rb
snmpjr-0.3.0-java spec/spec_helper.rb
snmpjr-0.2.2-java spec/spec_helper.rb
snmpjr-0.2.1-java spec/spec_helper.rb
snmpjr-0.2.0-java spec/spec_helper.rb
snmpjr-0.1.7-java spec/spec_helper.rb