diff --git a/Gemfile b/Gemfile index 2b39c8f0..6935f90b 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,6 @@ gem 'maruku', '~> 0.7.0' gem 'rdiscount', '~> 2.0' gem 'launchy', '~> 2.3' gem 'simplecov', '~> 0.9' -gem 'simplecov-gem-adapter', '~> 1.0.1' gem 'mime-types', '~> 1.5' gem 'activesupport', '~> 3.2.13' gem 'jekyll_test_plugin' @@ -27,6 +26,7 @@ gem 'jekyll_test_plugin_malicious' gem 'liquid-c', '~> 0.0.3' gem 'minitest' gem 'minitest-reporters' +gem 'minitest-profile' gem 'test-unit' if RUBY_PLATFORM =~ /cygwin/ || RUBY_VERSION.start_with?("2.2") if ENV['BENCHMARK'] diff --git a/script/test b/script/test index 38ae46b6..7da787d5 100755 --- a/script/test +++ b/script/test @@ -20,4 +20,4 @@ fi set -x -time bundle exec ruby -Ilib -Itest -rloader $TEST_FILES +time bundle exec ruby -Ilib -Itest -rloader $TEST_FILES --profile diff --git a/test/helper.rb b/test/helper.rb index 257b2db9..e4a50db0 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,14 +1,16 @@ -require 'simplecov' -require 'simplecov-gem-adapter' -SimpleCov.start('gem') do - add_filter "/vendor/bundle" - add_filter "/vendor/gem" +unless ENV['TRAVIS'] + require File.expand_path('../simplecov_custom_profile', __FILE__) + SimpleCov.start('gem') do + add_filter "/vendor/bundle" + add_filter "/vendor/gem" + end end require 'rubygems' require 'ostruct' require 'minitest/autorun' require 'minitest/reporters' +require 'minitest/profile' require 'jekyll' diff --git a/test/simplecov_custom_profile.rb b/test/simplecov_custom_profile.rb new file mode 100644 index 00000000..d7f4914c --- /dev/null +++ b/test/simplecov_custom_profile.rb @@ -0,0 +1,10 @@ +require 'simplecov' + +SimpleCov.profiles.define 'gem' do + add_filter '/test/' + add_filter '/features/' + add_filter '/autotest/' + + add_group 'Binaries', '/bin/' + add_group 'Libraries', '/lib/' +end