Skip to content

Commit

Permalink
disable -w warnings in test task
Browse files Browse the repository at this point in the history
  • Loading branch information
jrochkind committed Jul 18, 2018
1 parent a24fc28 commit 2e83073
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -11,11 +11,18 @@ require 'rake/testtask'
task :default => [:test]

Rake::TestTask.new do |t|
# Rake 11 makes warnings on by default, but there is so much noise, including
# from our dependencies, and from things I think are silly warnings like
# "shadowing outer local variable"
# Possibly could turn back on in the future using https://rubygems.org/gems/warning/versions/0.10.0
# gem to customize.
t.warning = false

t.pattern = 'test/**/*_test.rb'
t.libs.push 'test', 'test_support'
end

# Not documented well, but this seems to be
# the way to load rake tasks from other files
#import "lib/tasks/load_map.rake"
Dir.glob('lib/tasks/*.rake').each { |r| import r}
Dir.glob('lib/tasks/*.rake').each { |r| import r}

0 comments on commit 2e83073

Please sign in to comment.