When I run a unit test the results are displayed poorly:
Loaded suite /Applications/TextMate.app/Contents/SharedSupport/ Bundles/Ruby.tmbundle/Support/tmruby Started .F Finished in 0.008257 seconds. 1) Failure: test_outOfRange(TestIntTypes) [/Users/dave/Chips/ DES/bitsteam/decoder/tests/tc_intTypes.rb:40]: exception expected but was Class: Message: <"uint4 t_uint4 has value: -1 (out of expected range)"> ---Backtrace--- (eval):4:in `t_uint4=' /Users/dave/Chips/DES/ bitsteam/decoder/tests/tc_intTypes.rb:40:in `test_outOfRange' /Users/ dave/Chips/DES/bitsteam/decoder/tests/tc_intTypes.rb:40:in `test_outOfRange' --------------- 2 tests, 12 assertions, 1 failures, 0 errors
- it looks like the \n are being ignored. I run the tests by using command R in the test file.
When I run from the terminal I get:
Loaded suite tc_intTypes Started .F Finished in 0.015976 seconds.
1) Failure: test_outOfRange(TestIntTypes) [tc_intTypes.rb:40]: <SyntaxElementError> exception expected but was Class: <RuntimeError> Message: <"uint4 t_uint4 has value: -1 (out of expected range)"> ---Backtrace--- (eval):4:in `t_uint4=' tc_intTypes.rb:40:in `test_outOfRange' tc_intTypes.rb:40:in `test_outOfRange' ---------------
2 tests, 12 assertions, 1 failures, 0 errors
Do I have something configured wrong?
Thanks,
Dave.
On 21/6/2006, at 12:20, Dave Baldwin wrote:
When I run a unit test the results are displayed poorly:
The problem is that Ruby’s UT framework does all the execution at_exit, which is after RubyMate has stopped parsing the output of the script.
Try use the Run Focused Unit Test instead.
On Jun 21, 2006, at 10:10 AM, Allan Odgaard wrote:
On 21/6/2006, at 12:20, Dave Baldwin wrote:
When I run a unit test the results are displayed poorly:
The problem is that Ruby’s UT framework does all the execution at_exit, which is after RubyMate has stopped parsing the output of the script.
Try use the Run Focused Unit Test instead.
Or, if you have a Rakefile, use my new Run Task Task commands to get color output and hyperlinked errors.
James Edward Gray II