我面临一个奇怪的 FlexUnit 错误:
哇...被要求发送另一个完整的,我已经这样做了
当测试次数超过 27 时似乎会发生错误......?(测试永远不会完成)
测试示例:
[Test]
public function whenDoingThat_expectThatIsTrue():void{
//blabla
assertTrue(...)
}
欢迎任何帮助!
这是一个例子:
core = new FlexUnitCore();
core.addListener(new TraceListener());
core.run(FooTest);
import org.flexunit.asserts.assertTrue;
public class FooTest {
[Test]
public function foo_test_1() : void {
assertTrue(true);
}
[Test]
public function foo_test_2() : void {
assertTrue(true);
}
...
[Test]
public function foo_test_28() : void {
assertTrue(true);
}
//[Test]
public function foo_test_29() : void {
assertTrue(true);
}
}
结果:
foo_test_9 .
foo_test_17 .
foo_test_3 .
foo_test_18 .
foo_test_4 .
foo_test_19 .
foo_test_5 .
foo_test_6 .
foo_test_20 .
foo_test_21 .
foo_test_7 .
foo_test_22 .
foo_test_8 .
foo_test_23 .
foo_test_2 .
foo_test_24 .
foo_test_10 .
foo_test_25 .
foo_test_11 .
foo_test_26 .
foo_test_12 .
foo_test_27 .
foo_test_13 .
foo_test_28 .
foo_test_14 .
foo_test_15 .
foo_test_1 .
foo_test_16 .
Whoa... been asked to send another complete and I already did that