我和Karma一起做了这个茉莉花测试:
describe('When a logged in user chooses Rent and Payment PIN is enabled', function() {
beforeEach(function(){
});
afterEach(function() {
});
it('should be presented with a dialog to enter the pin', function() {
//test to be skipped
})
}) 我希望在报告中看到此测试已被跳过,并在测试所需的所有材料准备就绪后再回来测试。
我如何才能做到这一点呢?
发布于 2014-02-12 06:15:07
您可以尝试在规范中使用pending函数。根据文档,挂起的规范不会运行,但名称仍会显示在结果中。对于2.0,它还说空的方法体应该有效。尝试:
it('should be presented with a dialog to enter the pin', function() {
pending();
})或
it('should be presented with a dialog to enter the pin');https://stackoverflow.com/questions/17724498
复制相似问题