When you fail a test, it's better to tell your mom the truth rather than find out another way.
考试不及格时,你最好告诉你妈妈真相,而不是动其他心思。
Do you ever worry that you'll fail a test?
你曾经担心过考试不及格吗?
Do you ever worry that you '11 fail a test?
你担心考试会不及格吗?
If getting good grades defines your identity, what happens if you fail a test?
如果取得良好成绩能定位你的身份,那么万一没通过考试又该怎么办?
In part this is for safety reasons, in part because we do not want to fail a test specimen or overload an instrument.
这样做的部分原因是基于安全考虑,另外也是为了防止试体破坏或仪器超过负荷。
Sometimes it's simplest to have a human sit in front of the program and mark each test as pass or fail.
有时,最简单的方法是让一个人坐在程序前将每一个测试通过或失败的结果都标记下来。
The key is to write a test that will fail if the aspect misbehaves or does not apply to the join points you intend it to.
关键是编写一个当方面行为错误或者没有应用到希望它应用的联结点处时会失败的测试。
Normal TDD writes only enough code to make a test fail.
标准的TDD只编写能够使一个测试失败的足够多的代码。
This is the most reliable way to find components in a test; it guarantees that component lookup will never fail, even if the GUI's layout changes in the future.
这是在一个测试中查找组件最可靠的方式;它保证组件查找从不失败,即使GUI的布局在将来会改变。
The real test of regulation is whether a big bank can fail without hurting taxpayers.
监管的真正考验在于大型银行是否可以倒闭而不伤害纳税人。
This is challenging because there is no network in a unit test and the AJAX call will fail.
这很有挑战性,因为单元测试中没有网络,AJAX调用会失败。
Then I would even take it a step further and run the test cases, even though I know they will fail because I haven't actually written any of the code for it.
接下来我甚至会进一步运行测试用例,尽管我知道它们将失败,因为我没有为该类编写任务代码。
The DOH also allows you to specify a custom timeout in milliseconds that will fail the test if a response is not returned within the specified time.
DOH还允许以毫秒为单位设定超时值,一旦响应没有在指定的时间内返回,测试就会失败。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
Meanwhile, another new test, described here, claims to predict when a women's ovaries will start to fail.
另外一项新的测试方法则宣称能预测女性的卵巢从何时开始衰竭。
Pharmaceutical companies are using heart cells grown from iPSCs to test drugs for cardiac side effects, a common reason that promising drugs fail.
医药公司使用由万能干细胞生长而成的心脏细胞做心脏病药物的副作用测试,副作用是很多看起来很有希望的药物最终未能成功的一大原因。
Repeat until you find a test that does fail and thus discover the true cause of the bug.
重复进行,直到找到一个真正失败的测试,从而找到造成bug的真正原因。
If the exception isn't thrown (or a different exception is thrown), the test will fail.
如果该异常没有抛出(或者抛出了一个不同的异常),那么测试就将失败。
Else code block is a simple logical crossroad that helps show why the test would fail or pass if one path - and not another - is taken, according to test expectations.
else代码块是一个简单的逻辑分支,根据测试期望说明选取一条路经——而不是另一条路经——之后测试将失败(或通过)的原因。
How can such a simple test fail? The root cause appears in Figure 2?
这样一个简单的测试怎么会失败?
The test case in Listings 2 through 4 produce a NoClassDefFoundError because an implicit load of class B will fail
清单2到清单4的测试用例产生了NoClassDefFoundError,因为类B 的隐式装入会失败
You can use the fail method to force a test case to fail, for example if you want to force a timeout of an operation.
您可以利用fail方法强迫这个测试用例失败,例如您想要迫使一个操作暂停。
A test can fail because some specific assertion does not hold (assertion methods either start with ".fail "or".assert ").
一个测试可能会因为一些具体的断言无效而失败(断言方法或者以“。fail”开头,或者以“。assert”开头)。
These tests don't necessarily need to fail first (although a failure when you think a test should pass is pure gold, because you've found a potential bug).
这些测试不一定需要首先采用失败测试的形式(但是,如果在认为测试应该通过时测试却失败了,这是很有价值的,因为这意味着找到了一个潜在的 bug)。
Otherwise they might fail the test, and it would be a disaster.
否则它们可能会考试不及格,而这将是一个灾难。
Otherwise, a well-constructed test would fail every time.
否则,构建良好的测试每次都将失败。
So we could develop a test that assesses prospective parents' capabilities and if they fail the test, well, no children allowed.
我们应该对那些未来的父母的能力做出一个评估,如果他们不能够通过测试,那么好吧,不允许有孩子。
This code runs in a respectable time, but a couple of the test assertions fail.
这段代码运行的时间十分合理,但是几个测试断言都失败了。
This code runs in a respectable time, but a couple of the test assertions fail.
这段代码运行的时间十分合理,但是几个测试断言都失败了。
应用推荐