Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于run(result)test/unit/testcase.rb 中的方法,我的结果应该是什么属性类型?它将存储错误的结果和TestCase类的断言。我不知道它应该是TestCase对象还是什么。
run(result)
TestCase
它应该是 aTest::Unit::TestResult以便它提供add_failure,add_error和add_assertion方法。
Test::Unit::TestResult
add_failure
add_error
add_assertion