Permalink
Browse files

Grouped coverage

  • Loading branch information...
1 parent dfd8c72 commit af400860d67cfe20643d7afc96d37c7c2f59e7d0 @txus committed Nov 13, 2010
Showing with 14 additions and 2 deletions.
  1. +1 −1 Gemfile.lock
  2. +13 −1 spec/spec_helper.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- stendhal (0.1.7)
+ stendhal (0.1.8)
GEM
remote: http://rubygems.org/
View
@@ -5,7 +5,19 @@
require 'simplecov'
SimpleCov.start do
- add_group "Lib", 'lib'
+ add_group "Root lib" do |src_file|
+ src_file.filename =~ /lib\/(\w)+\.rb$/ || (src_file.filename =~ /lib\/stendhal\/(\w)+\.rb$/ && !(src_file.filename =~ /matchers|mocks/))
+ end
+ add_group "Matchers" do |src_file|
+ src_file.filename =~ /lib\/stendhal\/matchers\.rb/ || src_file.filename =~ /lib\/stendhal\/matchers\/(\w)+\.rb$/
+ end
+ add_group "Mocks" do |src_file|
+ src_file.filename =~ /lib\/stendhal\/mocks\.rb/ || src_file.filename =~ /lib\/stendhal\/mocks\/(\w)+\.rb$/
+ end
+ add_group "Core extensions" do |src_file|
+ src_file.filename =~ /lib\/stendhal\/core_ext\/(\w)+\.rb$/
+ end
+ add_filter '/spec/'
end
require 'stendhal'

0 comments on commit af40086

Please sign in to comment.