对我来说,单元测试是快速运行的 测试,通常测试没有大的外部依赖项(如数据库)的单独的类。
To me, unit tests are fast running tests that typically test individual classes that don't have heavy external dependencies like databases.
我还要强调的是,放弃功能测试并不是总是正确的,因为执行功能测试很快很容易,至少低级的测试是这样的。
I will also argue that it is never all right to forgo functional testing, because it is so quick and so easy to perform, at least a minimal level of functional testing.
我需要决定对不同的测试用例是使用一个测试方法还是多个测试方法。
I need to decide if I will have just one test method or many test methods for the different test cases.
What I am talking about today, I will not be testing you, but maybe you might pay attention because about a month from now we will ask you a few skill testing questions about it.
我说的是今天,我等会不会测试你,但是你可能会重视了,因为一个月之前,我们问了你关于一些测试的技能。
For instance in the past, we had that silly little program for computing the average of some quizzes and it was actually a pretty bad implementation because I had essentially hard coded in the number of quizzes.
比如在以前,我们做了一个,计算平均数的程序,这是一个相当挫的实现,因为我硬编码了测试的数字。
So when I was out of school, mom sent me to take an exam, IQ exam.
这之后,我妈妈送我去做一个测试,是一个智商的测试。
应用推荐