11

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
    })
})    

そして、このテストがスキップされたことをレポートで確認し、テストに必要なすべての準備が整ったときにテストに戻りたい.

どうすればこれを達成できますか?

4

1 に答える 1

8

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');
于 2014-02-11T22:15:06.680 に答える