开发者

What type should the argument be for the run method in testcase.rb?

开发者 https://www.devze.com 2023-01-06 19:27 出处:网络
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 kn

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消