Sha256: 4e8680c0bc827db2234e4c939dc8a64d83bb0b52309b9f8bb34098bb3cbf8e84

Contents?: true

Size: 593 Bytes

Versions: 1

Compression:

Stored size: 593 Bytes

Contents

module EatYourVegetables
  module Tools
    # Simplecov provides integration with the Simplecov coverage framework
    class Simplecov < Base
      attr_writer :config_file

      protected

      def config_file
        @config_file || 'spec/spec_helper.rb'
      end

      def excluded_files(content)
        # Matches all add_filter in the file.
        # It's imperfect but works for now.
        content.split("\n").select do |line|
          line.include? 'add_filter'
        end.map do |line|
          /[\"'](\S+)[\"']/.match(line.strip).to_s
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eat_your_vegetables-0.1.2 lib/eat_your_vegetables/tools/simplecov.rb