mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #11046 from arunagw/verbose_mode_on
Verbose mode on when running tests
This commit is contained in:
commit
f02d4ddc99
5 changed files with 7 additions and 5 deletions
|
@ -16,7 +16,7 @@ namespace :test do
|
||||||
task :isolated do
|
task :isolated do
|
||||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||||
Dir.glob("test/**/*_test.rb").all? do |file|
|
Dir.glob("test/**/*_test.rb").all? do |file|
|
||||||
sh(ruby, '-Ilib:test', file)
|
sh(ruby, '-w', '-Ilib:test', file)
|
||||||
end or raise "Failures"
|
end or raise "Failures"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace :test do
|
||||||
task :isolated do
|
task :isolated do
|
||||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||||
Dir.glob("test/{abstract,controller,dispatch}/**/*_test.rb").all? do |file|
|
Dir.glob("test/{abstract,controller,dispatch}/**/*_test.rb").all? do |file|
|
||||||
sh(ruby, '-Ilib:test', file)
|
sh(ruby, '-w', '-Ilib:test', file)
|
||||||
end or raise "Failures"
|
end or raise "Failures"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace :test do
|
||||||
task :isolated do
|
task :isolated do
|
||||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||||
Dir.glob("test/{active_record,template}/**/*_test.rb").all? do |file|
|
Dir.glob("test/{active_record,template}/**/*_test.rb").all? do |file|
|
||||||
sh(ruby, '-Ilib:test', file)
|
sh(ruby, '-w', '-Ilib:test', file)
|
||||||
end or raise "Failures"
|
end or raise "Failures"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -39,6 +39,8 @@ desc 'ActiveRecord Integration Tests'
|
||||||
Rake::TestTask.new(:test_active_record_integration) do |t|
|
Rake::TestTask.new(:test_active_record_integration) do |t|
|
||||||
t.libs << 'test'
|
t.libs << 'test'
|
||||||
t.test_files = Dir.glob("test/activerecord/*_test.rb")
|
t.test_files = Dir.glob("test/activerecord/*_test.rb")
|
||||||
|
t.warning = true
|
||||||
|
t.verbose = true
|
||||||
end
|
end
|
||||||
|
|
||||||
spec = eval(File.read('actionview.gemspec'))
|
spec = eval(File.read('actionview.gemspec'))
|
||||||
|
|
|
@ -62,7 +62,7 @@ end
|
||||||
(Dir["test/cases/**/*_test.rb"].reject {
|
(Dir["test/cases/**/*_test.rb"].reject {
|
||||||
|x| x =~ /\/adapters\//
|
|x| x =~ /\/adapters\//
|
||||||
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
|
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
|
||||||
sh(ruby, "-Itest", file)
|
sh(ruby, '-w' ,"-Itest", file)
|
||||||
end or raise "Failures"
|
end or raise "Failures"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace :test do
|
||||||
task :isolated do
|
task :isolated do
|
||||||
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
|
||||||
Dir.glob("test/**/*_test.rb").all? do |file|
|
Dir.glob("test/**/*_test.rb").all? do |file|
|
||||||
sh(ruby, '-Ilib:test', file)
|
sh(ruby, '-w', '-Ilib:test', file)
|
||||||
end or raise "Failures"
|
end or raise "Failures"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue