开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜