lib/generators/deck/templates/simplecov.rb.erb in card-1.104.2 vs lib/generators/deck/templates/simplecov.rb.erb in card-1.105.0
- old
+ new
@@ -1,27 +1,29 @@
-if ENV["<%= 'REPO_' if platypus? %>TMPSETS"] && ENV["COVERAGE"] != "false"
+if (ENV["CARD_LOAD_STRATEGY"] == "tmp_files") && ENV["CARD_SIMPLECOV"] != "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_mod_groups "#{root}/{card/,}/mod/*"
+ add_group "Cardname", "cardname/lib"
+ add_group "Card", "card/lib"
+ add_group "Decko", "decko/lib"
+ add_group "Set Patterns", "tmp/set_pattern"
+
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/*"
+
+ add_filter "tmp/set/gem"
+ add_filter "tmp/set_pattern"
<% end %>
add_filter "/spec/"
add_filter "/features/"
add_filter "/config/"
add_filter "/tasks/"