019 质量控制人员质疑微测试和TDD

2022-01-07 14:41:4006:41 51
所属专辑:敏捷理念
声音简介

Jose: I heard from other team members that you are implementing TDD.For now, I am the only colleague responsible for quality, but ... your tests are only for code, and I am already testing functions, so what are the benefits of doing this?

 

Vanilla: Uh, what you do is a lot of manual operations.And our tests are automated, and—

 

Jose: And they are written by your developers?Doesn't it make much sense to write your own tests to detect the code you wrote?That ’s not every test can pass directly, because do n’t you just want the test to pass?

 

Vanilla: It ’s like this, just like unit testing—

 

Jose: Unit testing?More like a fantasy unicorn test.Do you really think you are testing?Are they really valuable?

 

Vanilla: Well, unit testing is fast, mainly to test the developer's intentions.

 

Jose: I don't need any bad unit tests to tell me the developer's intentions.Every developer hopes that the fewer tests they perform, the better, so that they have time to write more functions and make debugging changes later.If everyone comes to me to complain, I ca n’t take care of them at all, and my test time will be cut in half!

 

Vanilla: Think about it, I wrote 20 unit tests in the past 4 days.Did you know that they can test every line of code you and I write?

 

Jose: Just every line of code you write.What a shortcut!Dude, you need to be awake!

 

Vanlla: Think again, Jose—

 

Jose: This is not even a secret, Pop!I heard from the product owner that these unit tests don't even test the function.What can they do?

 

Vanilla: They don't test functions directly.Directly, this word is key!However, they test the code and implement the code of the product function.

 

Jose: Hear what you are saying, man.You are crazy.

 

Vanilla: Not really!

 

Jose: Whether it ’s micro testing or not, developers write tests?This is a completely different matter, two distinct things!

 

Vanilla: Stop and stop!Do you think developers are not capable of writing tests?

 

Jose: It is a very fundamental question.Because ... wait, I seem to think of something.

 

Vanilla: What the hell do you want to say?

 

Jose: Wait a moment.I think, ah, I suddenly understood.It's coming, yes, it's coming!(Make a quoted gesture)

 

Vanilla: Brother, it's such a toss me!You are really ... a lovely colleague.I would like to ask you to look at the names of these micro-tests. (Keyboard clicks are heard) Did you see these names? They ...

 

Jose: (Surprised) These names are very straightforward to explain what they are testing.I finally understand that your testing is not just about doing things.Excellent!You will become an excellent tester.You are really a superman.I didn't understand your logical control link at first.Give the whole thing to others, and they will find it quicker and more convenient to hand me the test directly.It's hard to get you to write more than 20 tests, this is not your job as a developer.can you help me?If you have failed the micro test, can you let me know?My boss has been paying attention to how many vulnerabilities I have discovered.If these micro-tests can be helpful, please let me know so that I can submit bug reports they find.

 

Commentary:

Writing micro-tests with developers is somewhat controversial in many companies. The traditional view is that this is the job of quality control.However, the function of quality control is to prepare for product release, and the quality control manager and his team usually test after development is complete.Therefore, it is confusing to have them test during development.In fact, in TDD, a small part of the test is even completed before development.Because micro-tests run so fast, developers like Vanilla Pop can even complete many rounds of tests every day and every hour.This allows developers to use tests to quickly check the written code, see if their work is flawed, and find errors before the code is submitted.Such an error detection mechanism occurs before the traditional quality control process or even macro testing.In this case, TDD actually shortened the development cycle, allowing developers to write more functions every day while making fewer mistakes.

 

Because specialized testers will question the various ideas that developers tell them, Vanilla Pop needs to win the support of testers and hold developers accountable for code defects, especially after they have been willing to accept writing automated microtests.Jose will continue to write automated acceptance tests (macro tests) for functions, instead of focusing on how many error counts can be submitted to the manager; the focus should not be on the beginning of the design sprint cycle. ATDD (Acceptance Test Driven Development), which reports how much code is "covered" by automated testing.



用户评论

表情0/300
喵,没有找到相关结果~
暂时没有评论,下载喜马拉雅与主播互动
猜你喜欢
质量人员岗位必知管理技能提升专辑

此专辑是为在工业企业中担任质量部的各级岗位人员技能提升而准备的,日常工作中的应注意项,岗位必备知识,如何能够从小白到质量检验员或质量部经理的技能培训,ISO90...

by:质量管理工作者

2021监理建设工程质量控制、投资控制、进度控制考点

2021年新版教材监理工程师考试进度控制质量控制投资控制名师精华考点串讲助您一次通过考...

by:音频备考者

特殊人员

一部良心作品!免费哦!!!小说情节跌岩起伏,小说角色活灵活现,紧扣事件脉搏,高品质音频!!绝对震撼您的心灵。欢迎您的关注和订阅。。如果喜欢请给作品点赞,点赞,点...

by:草草说书

备考2024监理水利三控投资控制质量控制监理工程师

(薇信:2532866676)提供更多课程资料,高清视频讲义题

by:考证课程资料

2021年监理工程师土建控制(质量控制)精讲课程

主讲老师:江凌俊,微信号:1517169898欢迎关注主播,考客教育将免费为各位考生提供零基础精讲课程,以及终身免费题库!考客教育是一家专注于职业教育领域的...

by:大表哥考证

质量成本控制方法与实施策略

质量成本管理的整个过程中,最关键的是质量成本控制。质量成本控制实施过程中,应该如何操作?本课程将为你介绍质量成本控制的必要性与方法,结合实际案例,呈现质量成本控...

by:饮酒品茶谈天下

2018监理《质量控制》—检测方法

本课程主讲2018年监理《质量控制》精讲—检测方法相关课程内容,如果您对监理工程师考试有任何问题或者领取电子版资料都可私信老师咨询!视频版课程也可私信老...

by:优路教育网