What type should the argument be for the run method in testcase.rb?
For the run(result) method in test/unit/testcase.rb, what attribute type should my res开发者_开发问答ult be? It will store the result from the error and assertions from the TestCase class. I don't know if it should be TestCase object or something.
It should be a Test::Unit::TestResult so that it provides the add_failure, add_error and add_assertion methods.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论