0
當我嘗試使用rake在ruby上運行一些基本的單元測試時,它似乎會在ruby解釋器上啓用調試。這最終導致我在STDOUT中看到大量的警告消息。我不知道爲什麼會發生這種情況,是否應該如此?Ruby Rake - 默認運行Ruby -w?
D:\dev\git_repos\app_folder>ruby -v
ruby 2.0.0p647 (2015-08-18) [i386-mingw32]
D:\dev\git_repos\app_folder>rake test TEST=test/midrange_portal_test.rb
像4頁的警告
輸出,使我相信調試翻起:
Command failed with status (2): [ruby -w -I"lib;test" -
I"D:/apps/Ruby200/lib/ruby/gems/2.0.0/gems/rake-11.1.2/lib"
"D:/apps/Ruby200/lib/ruby/gems/2.0.0/gems/rake-11.1.2/lib/rake/rake_test_loader.rb" "test/midrange_portal_test.rb" ]
D:\dev\git_repos\app_folder>gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.14.1
- RUBY VERSION: 2.0.0 (2015-08-18 patchlevel 647) [i386-mingw32]
- INSTALLATION DIRECTORY: D:/apps/Ruby200/lib/ruby/gems/2.0.0
- RUBY EXECUTABLE: D:/apps/Ruby200/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/apps/Ruby200/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- D:/apps/Ruby200/lib/ruby/gems/2.0.0
- H:/.gem/ruby/2.0.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
通知命令是如何 「紅寶石-w」。我不知道爲什麼它默認這個級別的調試?任何幫助將不勝感激,因爲我很難過。