Sha256: 3b9ccbb73e02a0f412496e14143498b4173dc0f85a953f03bfeed5a2f20df1c7

Contents?: true

Size: 506 Bytes

Versions: 21

Compression:

Stored size: 506 Bytes

Contents

require 'simplecov-rcov'
SimpleCov.profiles.define 'spec' do
  add_group 'jenkins_pipeline_builder', '/lib/'
  add_filter 'spec'
  coverage_dir 'out/coverage'
  formatter SimpleCov::Formatter::MultiFormatter.new([
                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"]

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
jenkins_pipeline_builder-1.10.0 .simplecov
jenkins_pipeline_builder-1.9.1 .simplecov
jenkins_pipeline_builder-1.9.0 .simplecov
jenkins_pipeline_builder-1.8.0 .simplecov
jenkins_pipeline_builder-1.7.0 .simplecov
jenkins_pipeline_builder-1.5.0 .simplecov
jenkins_pipeline_builder-1.3.0 .simplecov
jenkins_pipeline_builder-1.2.1 .simplecov
jenkins_pipeline_builder-1.2.0 .simplecov
jenkins_pipeline_builder-1.1.5 .simplecov
jenkins_pipeline_builder-1.1.4 .simplecov
jenkins_pipeline_builder-1.1.3 .simplecov
jenkins_pipeline_builder-1.1.2 .simplecov
jenkins_pipeline_builder-1.1.0 .simplecov
jenkins_pipeline_builder-1.0.0 .simplecov
jenkins_pipeline_builder-0.16.3 .simplecov
jenkins_pipeline_builder-0.16.2 .simplecov
jenkins_pipeline_builder-0.16.0 .simplecov
jenkins_pipeline_builder-0.15.3 .simplecov
jenkins_pipeline_builder-0.15.2 .simplecov