Reputation: 1327
I have this jasmine test that I'm running with 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
})
})
And I want to see on report that this test has been skipped and come back to test when all stuff needed for test will be ready.
How can I accomplish this?
Upvotes: 11
Views: 4537
Reputation: 1648
You might try using the pending
function in your spec. According to the doc, pending specs don't run, but names still show up in the results. For 2.0, it also says an empty method body should work. Try:
it('should be presented with a dialog to enter the pin', function() {
pending();
})
or
it('should be presented with a dialog to enter the pin');
Upvotes: 8