Sha256: c9242fba507ec47fec61f34c3ac2c0b260c05aac64f68cf013d3d094b9cfb312
Contents?: true
Size: 726 Bytes
Versions: 7
Compression:
Stored size: 726 Bytes
Contents
require 'logger' require 'rspec' require 'simplecov' require 'simplecov-rcov' SimpleCov.profiles.define 'spec' do add_group 'jenkins_pipeline_builder', '/lib/' coverage_dir 'out/coverage' formatter SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::Console, SimpleCov::Formatter::RcovFormatter, ] end class SimpleCov::Formatter::Console def format(result) print "COVERAGE: #{result.covered_percent.round(2)}%\n" end end SimpleCov.start 'spec' #if ENV["COVERAGE"] require File.expand_path('../../../lib/jenkins_pipeline_builder', __FILE__) require 'rspec/matchers' require 'equivalent-xml' RSpec.configure do |config| config.before(:each) do end end
Version data entries
7 entries across 7 versions & 1 rubygems