摘要: 1.Download HTMLTestRunner.py ,add it directly into your working directory as a module (if use python3, need some adjustment )2.Create our unit test fi 阅读全文
posted @ 2019-02-23 03:45 happyran 阅读(489) 评论(0) 推荐(0)
摘要: 学习import behave module来实现BDD parameter参数的路径要加入引号 阅读全文
posted @ 2019-02-23 03:45 happyran 阅读(246) 评论(0) 推荐(0)
摘要: 看到一段话,讲的有点道理 并不是每修复一个 bug 都需要写测试。很多公司都流传一个常见的教条,就是认为每修复一个 bug,都需要为它写测试,用于确保这个 bug 不再发生。甚至有人要求你这样修复一个 bug:先写一个测试,重现这个 bug,然后修复它,确保测试通过。这种思维其实是一种生搬硬套的教条 阅读全文
posted @ 2019-02-23 03:44 happyran 阅读(212) 评论(0) 推荐(0)
摘要: from fluent python: Python sequences are often categorized as mutable or immutable, but it is also useful to consider a different axis: flat sequences 阅读全文
posted @ 2019-02-23 03:43 happyran 阅读(287) 评论(0) 推荐(0)