Reputation: 8390
In Jasmine 2.0 I can use xit
instead of it
to make jasmine skip the test. Disabling suites
I am likely to forget these tests since they don't appear in the result. So I was hoping to mark these tests as incomplete, this should warn me to look at it at some point.
Is it possible to mark them as disabled/incomplete so that they appear in the results as such?
Upvotes: 0
Views: 2627
Reputation: 8390
In the --verbose
output by jasmine-node skipped tests xit
/xdescribe
won't appear unless the feature is built.
Upvotes: 0
Reputation: 4399
You pretty much linked the answer in your question already. Everything, that you ask for is described here.
xdescribe('Disabled suits', function() {
it('test one', function() {
});
it('test two', function() {
});
it('test three', function() {
});
it('test four', function() {
});
});
describe('Disabled suits tests', function() {
it('Enabled test one', function() {
});
it('Enabled test two', function() {
});
xit('Disabled test one', function() {
});
xit('Disabled test two', function() {
});
});
Exception with first example is that it isn't displayed at all in the output. Not sure why. Maybe some option must be passed during execution, but second test suite, disabled/pending tests are marked differently in output.
Here is an example:
Upvotes: 1