Skip to content

Commit

Permalink
added SimpleCov OpenProject profile
Browse files Browse the repository at this point in the history
  • Loading branch information
tessi committed May 29, 2013
1 parent 0315621 commit 49c4506
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ group :test do
gem 'rb-readline' # ruby on CI needs this
# why in Gemfile? see: https://github.com/guard/guard-test
gem 'ruby-prof'
gem 'simplecov', ">= 0.8.pre"
gem 'coveralls', :require => false
end

Expand Down
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ GEM
shoulda-context (1.1.2)
shoulda-matchers (2.1.0)
activesupport (>= 3.0.0)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov (0.8.0.pre)
multi_json
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
slop (3.4.5)
Expand Down Expand Up @@ -404,6 +404,7 @@ DEPENDENCIES
sass-rails (~> 3.2.3)
selenium-webdriver
shoulda
simplecov (>= 0.8.pre)
sqlite3
sqlite3-ruby (< 1.3)
strong_parameters
Expand Down
3 changes: 2 additions & 1 deletion features/support/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
require 'cucumber/rails'

require 'coveralls'
Coveralls.wear_merged!('rails')
require 'simplecov_openproject_profile'
Coveralls.wear_merged!('openproject')

# Load paths to ensure they are loaded before the plugin's paths.rbs.
# Plugin's path_to functions rely on being loaded after the core's path_to
Expand Down
10 changes: 10 additions & 0 deletions lib/simplecov_openproject_profile.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require 'simplecov'
SimpleCov.profiles.define 'openproject' do
load_profile 'rails'
add_filter '/lib/assets'
add_filter '/lib/plugins/gravatar'
add_filter '/lib/plugins/rfpdf'
add_filter '/lib/SVG'
add_filter '/spec'
add_filter '/features'
end
3 changes: 2 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
ENV["RAILS_ENV"] ||= 'test'

require 'coveralls'
Coveralls.wear_merged!('rails')
require 'simplecov_openproject_profile'
Coveralls.wear_merged!('openproject')

require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
ENV["RAILS_ENV"] = "test"

require 'coveralls'
Coveralls.wear_merged!('rails')
require 'simplecov_openproject_profile'
Coveralls.wear_merged!('openproject')

require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
Expand Down

0 comments on commit 49c4506

Please sign in to comment.