Sha256: b02c40ccae6014474fa21bfda125669b3376bdedd6feaf20541788dcbb2dbfbe

Contents?: true

Size: 727 Bytes

Versions: 2

Compression:

Stored size: 727 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

2 entries across 2 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-0.5.1 spec/unit_tests/spec_helper.rb
jenkins_pipeline_builder-0.5.0 spec/unit_tests/spec_helper.rb