2021年你有任何测试的实践经验_第1页
2021年你有任何测试的实践经验_第2页
2021年你有任何测试的实践经验_第3页
2021年你有任何测试的实践经验_第4页
2021年你有任何测试的实践经验_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、你有任何测试的实践经验 你有任何测试的实践经验吗? Test everything that you want to work More test methods in your TestCase than in the class you are testing Tests should be as fine grained as possible Tests should be independent Should not take long to run (a few seconds) Easy to understand and read Make them safe Develope

2、rs must know they are not destructive All developers must know about them Everyone who touches the code must run the tests. Determines how much of your code is covered by tests If developer changes functionality, they _y need to update test Warning: youve changed the inte _ _. Did you break someone

3、else? Even better, all tests pass AND new tests were added for new code All tests pass all the time Dont allow even one test the “always fails” Track down and fix the broken test immediately Auto _te running of tests Ex. All tests on tip revision of code get run auto _tically on _ per day with failu

4、res e _iled. Run tests on code check-in Run tests before deployment Have a reasonable copy of your production enviro _ent in a dev area. 参考翻译: 测试你想做的一切 在你的测试用例的测试方法比你更多的类测试 试验应尽可能细 测试应该是 _的 不宜长时间跑(几秒钟) 易于理解和阅读 使他们安全 _商必须知道,他们没有破坏性 所有 _人员必须了解他们 每一个触摸代码的人都必须运行测试。 确定您的代码的多少是由测试覆盖的 如果 _人员更改功能,则可能需要更新测试 警告:您已经更改了接口。你打破别人了吗? 甚至更好,所有测试通过,新的测试,增加了新的代码 所有的测试都通过所有的时间 不要让哪怕是一次“失败” 追踪并修复损坏的测试 自动化测试 如所有

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论