You can declare disabled functions in both mocha and jasmine using xit
(instead of it
), and xdescribe
(instead of describe).
If you want the tests to appear as pending, in mocha you can just leave the second parameter blank in the call to the it()
function. For example:
describe('Something', function () {
it('Should be pending')
xit('Should be disabled, i.e not appear on the list')
});
Update: The behaviour for xit
/xdescribe
is might change in Mocha if this merge happens: https://github.com/visionmedia/mocha/pull/510
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…