D
David Corbin
I have written a little "test suite" for my use in developing a rails
application (I know about "rake test_units", but that won't work in my IDE of
choice). So, if I run unitTest.rb, all my tests run.
The problem I'm having, is if I have syntax errors, I still get a green bar
(fewer tests are shown), and there is NO indication of syntax errors, if one
of the required test files has syntax errors.
Help me understand why the there's no trace of syntax error when the required
file has one.
Thanks
David
-- begin unitTestSuite.rb--
require "test_helper"
require "test_builder"
requireAllTests("test/unit/**/*.rb")
--end--
--begin test_builder.rb--
def requireAllTests(pattern)
Dir.glob(pattern).each do |file|
require file
end
end
----
application (I know about "rake test_units", but that won't work in my IDE of
choice). So, if I run unitTest.rb, all my tests run.
The problem I'm having, is if I have syntax errors, I still get a green bar
(fewer tests are shown), and there is NO indication of syntax errors, if one
of the required test files has syntax errors.
Help me understand why the there's no trace of syntax error when the required
file has one.
Thanks
David
-- begin unitTestSuite.rb--
require "test_helper"
require "test_builder"
requireAllTests("test/unit/**/*.rb")
--end--
--begin test_builder.rb--
def requireAllTests(pattern)
Dir.glob(pattern).each do |file|
require file
end
end
----