Sha256: b2310881263f2517db103257381503cea6b541ff53b3b70a4f1c31c86e4f0c95

Contents?: true

Size: 754 Bytes

Versions: 5

Compression:

Stored size: 754 Bytes

Contents

if ENV["<%= 'REPO_' if platypus? %>TMPSETS"] && ENV["COVERAGE"] != "false"
  SimpleCov.start do
    def add_mod_groups dir_pattern
      Dir[dir_pattern].each do |path|
        modname = File.basename path
        add_group "Mod: #{modname}", %r{(mod/|mod\d{3}-)#{modname}}
      end
    end
    <% if platypus? %>
    root "<%= expanded_repo_path %>"

    add_filter "/generators/"
    add_filter "_spec_helper"
    add_filter "test_seed"

    add_group "Card", "card/"
    add_group "Cardname", "cardname"
    add_group "Decko", "decko"

    add_mod_groups "#{root}/{card/,}/mod/*"
    <% else %>
    add_mod_groups "mod/*"
    <% end %>
    add_filter "/spec/"
    add_filter "/features/"
    add_filter "/config/"
    add_filter "/tasks/"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.104.2 lib/generators/deck/templates/simplecov.rb.erb
card-1.104.1 lib/generators/deck/templates/simplecov.rb.erb
card-1.104.0 lib/generators/deck/templates/simplecov.rb.erb
card-1.103.4 lib/generators/deck/templates/simplecov.rb.erb
card-1.103.3 lib/generators/deck/templates/simplecov.rb.erb