Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleCov plus Skunk #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ group :test do
gem "minitest-bisect"
gem "minitest-retry"
gem "minitest-reporters"
gem "simplecov"

platforms :mri do
gem "stackprof"
Expand Down
8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ GEM
activerecord (>= 3.0, < 6.1)
delayed_job (>= 3.0, < 5)
digest-crc (0.4.1)
docile (1.3.2)
em-http-request (1.1.5)
addressable (>= 2.3.4)
cookiejar (!= 0.3.1)
Expand Down Expand Up @@ -461,6 +462,10 @@ GEM
faraday (~> 0.9)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simplecov (0.18.1)
docile (~> 1.1)
simplecov-html (~> 0.11.0)
simplecov-html (0.11.0)
sinatra (2.0.7)
mustermann (~> 1.0)
rack (~> 2.0)
Expand Down Expand Up @@ -593,6 +598,7 @@ DEPENDENCIES
selenium-webdriver (>= 3.141.592)
sequel
sidekiq
simplecov
sneakers
sprockets-export
sqlite3 (~> 1.4)
Expand All @@ -609,4 +615,4 @@ DEPENDENCIES
websocket-client-simple!

BUNDLED WITH
2.1.2
2.1.4
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ task default: %w(test test:isolated)
desc "Run #{task_name} task for all projects"
task task_name do
errors = []
system("bundle install skunk")
FRAMEWORKS.each do |project|
system(%(cd #{project} && #{$0} #{task_name} --trace)) || errors << project
if task_name == "test"
system("skunk lib/")
end
end
fail("Errors in #{errors.join(', ')}") unless errors.empty?
end
Expand Down
4 changes: 4 additions & 0 deletions activestorage/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
require "active_support/testing/autorun"
require "active_storage/service/mirror_service"
require "image_processing/mini_magick"
require "simplecov"
SimpleCov.start do
track_files "/lib/**/*.rb"
end

begin
require "byebug"
Expand Down
4 changes: 4 additions & 0 deletions activesupport/test/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

require "bundler/setup"
require "active_support/core_ext/kernel/reporting"
require "simplecov"
SimpleCov.start do
track_files "/lib/**/*.rb"
end

silence_warnings do
Encoding.default_internal = Encoding::UTF_8
Expand Down