1
當運行Rails的單元測試,我得到的輸出指定的行號和方法在測試失敗時,例如:Rails的單元測試:如何我自己的輸出添加到單元測試結果
1) Failure:
test_05_photo_tag_add_remove(TC_javascript02Test)
[./helper/helper.rb:6:in `handle_assert'
./helper/helper.rb:17:in `check_not_string'
./helper/helper.rb:134:in `check_for_ajax_remove_string'
javascript.rb:39:in `test_05_photo_tag_add_remove']:
<false> is not true.
是否有可能DD我自己的文本到這個堆棧?
預先感謝 彼得
謝謝你,Alex – Peter 2010-01-07 18:53:54