added SimpleCov OpenProject profile

pull/151/head
Philipp Tessenow 12 years ago
parent 031562155a
commit 49c4506162
  1. 1
      Gemfile
  2. 5
      Gemfile.lock
  3. 3
      features/support/env.rb
  4. 10
      lib/simplecov_openproject_profile.rb
  5. 3
      spec/spec_helper.rb
  6. 3
      test/test_helper.rb

@ -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

@ -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)
@ -404,6 +404,7 @@ DEPENDENCIES
sass-rails (~> 3.2.3)
selenium-webdriver
shoulda
simplecov (>= 0.8.pre)
sqlite3
sqlite3-ruby (< 1.3)
strong_parameters

@ -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

@ -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

@ -4,7 +4,8 @@ require 'rubygems'
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'

@ -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'

Loading…
Cancel
Save