Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (23 sloc) 754 Bytes
unless ENV['COVERAGE'] == 'false'
SimpleCov.start do
filters.clear # This will remove the :root_filter that comes via simplecov's defaults
add_filter do |src|
!(src.filename =~ /^#{SimpleCov.root}/) unless src.filename =~ /wagn/
end
add_filter '/spec/'
add_filter '/features/'
add_filter '/config/'
add_filter '/tasks/'
add_filter '/generators/'
add_filter 'lib/wagn'
add_group 'Card', 'lib/card'
add_group 'Set Patterns', 'tmp/set_pattern'
add_group 'Sets', 'tmp/set'
add_group 'Formats' do |src_file|
src_file.filename =~ /mods\/[^\/]+\/formats/
end
add_group 'Chunks' do |src_file|
src_file.filename =~ /mods\/[^\/]+\/chunks/
end
end
end