Sha256: 3915e6934ad6fdb55ef7e5f16c2759cc13988ee1c47aca982115d64ba48e836e

Contents?: true

Size: 580 Bytes

Versions: 7

Compression:

Stored size: 580 Bytes

Contents

module NdrDevSupport
  module RakeCI
    # This helper persists the SimpleCov::Result
    class SimpleCovHelper
      require 'simplecov'
      require_relative 'concerns/commit_metadata_persistable'

      include CommitMetadataPersistable

      def commit
        return @commit if @commit

        repo = Rugged::Repository.new('.')
        @commit = repo.lookup(repo.head.target_id)
      end

      def load_current_result
        load_current_commit_data
      end

      def save_current_result(result)
        save_current_commit_data(result)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ndr_dev_support-4.1.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.0.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-3.1.3 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-3.1.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-3.1.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-3.1.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-3.0.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb