Skip to content

Commit 5b4c421

Browse files
committed
Custom SimpleCov configuration
This isn't really a rails app so in parts it was doing a little disservice.
1 parent a807d87 commit 5b4c421

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spec/spec_helper.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,19 @@
1414
#
1515
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
1616
require 'simplecov'
17-
SimpleCov.start 'rails' do
17+
SimpleCov.start do
1818
enable_coverage :branch
19+
20+
add_filter "/spec"
21+
add_filter %r{^/config/}
22+
23+
24+
add_group "Concepts", "/app/concepts"
25+
add_group "Helpers", "/app/helpers"
26+
add_group "App Lib", "/app/lib"
27+
add_group "Lib", %r{^/lib/}
28+
29+
track_files "{app,lib}/**/*.rb"
1930
end
2031

2132
require 'webmock/rspec'

0 commit comments

Comments
 (0)