From: David Corbin Date: 2005-07-03T05:05:11+09:00 Subject: Re: require problem with syntax errors On Saturday 02 July 2005 01:54 am, Pit Capitain wrote: > David Corbin schrieb: > > 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. > > > > def requireAllTests(pattern) > > Dir.glob(pattern).each do |file| > > require file > > end > > end > > Hi David, > > I haven't looked where this happens, but it seems that test/unit > discards those errors. When this happened to me, I simply catched the > load errors myself and reported them with puts. There don't seem to be any errors raised. I tried the puts, and I do have a console window, but nothing shows up. I tried your example too, and get nothing. David