1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 'use strict';
- var test = require('../');
- var concat = require('concat-stream');
- var tap = require('tap');
- tap.test('test SKIP comment', function (assert) {
- assert.plan(1);
- var verify = function (output) {
- assert.equal(output.toString('utf8'), [
- 'TAP version 13',
- '# SKIP skipped',
- '',
- '1..0',
- '# tests 0',
- '# pass 0',
- '',
- '# ok',
- ''
- ].join('\n'));
- };
- var tapeTest = test.createHarness();
- tapeTest.createStream().pipe(concat(verify));
- tapeTest('skipped', { skip: true }, function (t) {
- t.end();
- });
- });
- test('skip this', { skip: true }, function (t) {
- t.fail('this should not even run');
- t.end();
- });
- test.skip('skip this too', function (t) {
- t.fail('this should not even run');
- t.end();
- });
- test('skip subtest', function (t) {
- t.test('skip this', { skip: true }, function (st) {
- st.fail('this should not even run');
- st.end();
- });
- t.end();
- });
- // vim: set softtabstop=4 shiftwidth=4:
|