摘要: From:http://blogs.msdn.com/imtesty/archive/2009/08/01/automation.aspxNot all automated UI tests save time! Tests that require constant massaging and tweaking because they constantly throw false positi... 阅读全文
posted @ 2009-08-02 14:26 CoderZh 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 在前面的玩转gtest - 断言中,我们提到了ASSERT_*系列的断言只是在当前函数返回,并非退出当前测试案例,因为ASSERT_*系列是通过return来实现的(因此 ASSERT_*系列不能在返回值不为void的函数内出现)。要退出当前测试案例,一个最简单的方法就是通过抛异常,然后让gtest捕获这一异常。 阅读全文
posted @ 2009-08-02 14:07 CoderZh 阅读(10828) 评论(2) 推荐(1) 编辑