我觉得摩卡停止运行当前测试用例断言失败后,像这样的 it('test', function(done) {
a.should.equal(b);
//if a is not equal to be, won't go here
//do something
done();
}
我需要继续断言失败后做的事情,我试图用的try ... catch ,但对于
我有一个模块实例化导入的类并异步调用这些实例的方法。 如何在每个测试用例中独立地模拟这些方法,以便这些mock只有在测试用例内部创建的情况下才有意义,因为我无法在测试结束时可靠地恢复mock? 例子: // tested class
import B from './b';
import C from './c';
export default class A {
someFun
最近,我们重新开始我们的服务器: Linux version 4.4.4-200.fc22.x86_64 ([email protected]) (gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC)) #1 SMP Fri Mar 4 20:06:29 UTC 2016
当我尝试运行我的webdriverio测试,我的流星应用: //scrip