由 QA 工程师进行单元测试 [英] Unit tests by a QA Engineer

查看:31
本文介绍了由 QA 工程师进行单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我从一些问答环节中了解到的(参见 thisthis),单元测试应该由开发人员编写.

在我之前的工作场所,我们尝试将这项任务交给 QA 工程师,但没有成功.可能是因为它已经是一个项目的中间而他没有机会进行重要的代码覆盖,或者可能是因为其他原因.

您认为让开发人员免于以这种方式编写单元测试是个坏主意吗?

As I understood from some Q&A sessions (see this and this), unit tests should be written by developers.

At my previous workplace we tried to give this task to a QA Engineer, but it didn't work. May be because it was already a middle of a project and he didn't have a chance to do a significant code coverage or may be because of another reason.

Do you think it's a bad idea to free a developer from writing unit tests in a such way?

推荐答案

总的来说,我认为这是一个坏主意.单元测试指导开发人员编写模块化(因此有用、可重用)的代码,因为他们的代码需要与生产系统和测试代码一起工作.

Generally, I think it is a bad idea. Unit tests guide the developer to write modular (and therefore useful, reusable) code because their code needs to work with both the production system and the test code.

这篇关于由 QA 工程师进行单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆