Though Bob starts with TDD, he seems to agree that to be a professional you need to have good unit tests.
尽管bob是以TDD开始说明,但他似乎同意专业化就是需要有良好的单元测试。
Good unit tests encourage loose coupling between units, a requirement to get the test running in a test harness.
好的单元测试要求单元间的松散耦合,这是在测试条件下让测试得以运行的条件。
At the end, you said the hallmark of the professional is to have good unit tests, and TDD is one way of achieving that.
最后,你又提到专业化的标志就是拥有良好的单元测试,而TDD则是达成这一目标的一种方法而已。
That way, if something breaks (which it won't because you're writing really good unit tests, right?), you can look at the refactoring history and see what happened.
通过这种方式,如果出现错误(这种情况不会发生,因为您编写了非常出色的单元测试,不是吗?),就可以查看重构历史记录,看看发生了什么。
Although it might seem like overkill to create unit tests for a small application like this, it really does build good programming practices to use this approach for even the smallest of projects.
尽管为这么小的应用程序创建单元测试似乎有点儿过分了,但是实际上即使对于最小的项目,使用这种方式也是良好的编程习惯。
This is why we use good design practices and automated feedback loops like unit or system tests; to keep things easy to change.
这就是为什么我们使用好的设计实践,和像单元测试与系统测试这样的自动化反馈环,都是为了让修改变得容易。
People with good core qualities will pick up the best approaches including writing unit tests and refactoring; learn design patterns and what is most important -deliver great and useful software.
拥有优秀核心品质的人会提出最优的方法,包括编写单元测试和重构;学习设计模式,并且最重要的是:开发出众并实用的软件。
Now that there is a customer, it is good to get automated builds configured to automate the packaging of the binaries that are shipped, and to automatically run the unit tests.
既然有一个客户,那么让构建配置自动化是一个不错的注意,它可以自动化使用的二进制,并自动运行测试单元。
"Good" here means a baseline for which the code has been fully compiled and that a set of unit tests has been run successfully.
“好的”在这里的意思是可以使代码可以完全编译,一组测试可以成功运行的基线。
As Figure 3 shows, it is a good practice to have each dojo module contain unit tests for just that module.
如图3所示,让每个Dojo模块都包含只针对该模块的单元测试是个很好的做法。
JUnit is very good at unit testing; however, it unravels when attempting to write functional tests.
JUnit非常适合编写单元测试;但是,当试图编写功能测试时,它就显得力不从心了。
If there are no obvious problems and you can run the unit tests, you're good to go.
如果没有明显的问题,并且能够运行单元测试,那么即可放心地继续下去了。
That being said, if you have the time and resources to write unit tests for even small/short projects, it may be a good idea.
即便如此,如果你确实有时间和精力去为小型项目写单元测试的话,也可能是个不错的主意。
When new unit tests (or any other tests for that matter) are created, you simply need to drop them into the directory and things are good to go!
当创建了新的单元测试(或针对此问题的任何其他测试),只需要将它们放到该目录下,一切就准备妥当了!
If you don't have unit tests, it might be a good idea to start introducing them in this stage (if you didn't get around to it in the "get it running" stage, for example).
如果您没有单元测试,那么在这个阶段引入它可能是个好主意(例如,如果您在“使它运行”阶段没有找到使用它的机会)。
Mary is working on the other major changes to the application -- she's doing a good job of writing unit tests, but the code is by no means perfect.
Mary正在对这个应用程序做一些其他的修改 ——她在编写单元测试方面做得很好,但是这个代码也太差了点。
I think academic research groups would gain a lot by using code reviews, and of course the things that go with them: good coding practices, a consistent style guide, insistence on unit tests.
我想学术研究组织会从代码审核上受益良多,当然随之而来的:良好的代码实践,一致的代码风格,坚持单元测试。
I think academic research groups would gain a lot by using code reviews, and of course the things that go with them: good coding practices, a consistent style guide, insistence on unit tests.
我想学术研究组织会从代码审核上受益良多,当然随之而来的:良好的代码实践,一致的代码风格,坚持单元测试。
应用推荐