Mar*_*ski 11 jasmine karma-runner karma-jasmine
我有这个茉莉花测试我和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
})
})
Run Code Online (Sandbox Code Playgroud)
我希望在报告中看到该测试已被跳过,并且在测试所需的所有内容准备好后再回来测试.
我怎么能做到这一点?
您可以尝试pending在规范中使用该功能.根据该文档,待定的规范不会运行,但名称仍会显示在结果中.对于2.0,它还说一个空的方法体应该工作.尝试:
it('should be presented with a dialog to enter the pin', function() {
pending();
})
Run Code Online (Sandbox Code Playgroud)
要么
it('should be presented with a dialog to enter the pin');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3582 次 |
| 最近记录: |