unit testing - How to mark a jasmine test incomplete? -


in jasmine 2.0 can use xit instead of it make jasmine skip test. disabling suites

i forget these tests since don't appear in result. hoping mark these tests incomplete, should warn me @ at point.

is possible mark them disabled/incomplete appear in results such?

you pretty linked answer in question already. everything, ask described here.

example

  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 first example isn't displayed @ in output. not sure why. maybe option must passed during execution, second test suite, disabled/pending tests marked differently in output.

here example: enter image description here


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -