测试软件的基本方法:通过性测试和失效性测试 1)通过性测试(test-to-pass):不需要想尽办法让软件崩溃,仅仅运用最简单、最直观的 测试用例。 2)在设计和执行测试用例时,总是首先进行通过性测试。
基于32个网页-相关网页
As long as all the test cases pass, I add the new unit test class to my unit test automation library, which gets run on every build.
只要通过所有的测试用例,我就将向单元测试自动库添加新的单元测试类,在每次构建时运行。
Now that the mock is prepared, I pass it as an argument to the method under test.
现在mock准备好了,我把它作为参数传递给要测试的方法。
When a doh.Deferred object is returned from a unit test, you must catch all errors from the asynch call and pass them to the object's errback method.
当从单元测试中返回一个 doh.Deferred 对象时,必须捕获异步调用中产生的所有错误信息并把它们传递给对象的 errback 方法。
应用推荐