diff --git a/test/integration/fixtures/options/forbid-pending/skip-suite.js b/test/integration/fixtures/options/forbid-pending/skip-suite.js new file mode 100644 index 0000000000..fe0a4578f0 --- /dev/null +++ b/test/integration/fixtures/options/forbid-pending/skip-suite.js @@ -0,0 +1,5 @@ +'use strict'; + +describe.skip('forbid pending - suite marked with skip', function () { + it('test1', function () {}); +}); diff --git a/test/integration/options.spec.js b/test/integration/options.spec.js index c385d6c56d..a5919e5cb2 100644 --- a/test/integration/options.spec.js +++ b/test/integration/options.spec.js @@ -263,5 +263,14 @@ describe('options', function () { done(); }); }); + + it('fails if there are tests in suites marked skip', function (done) { + run('options/forbid-pending/skip-suite.js', args, function (err, res) { + assert(!err); + assert.equal(res.code, 1); + assert.equal(res.failures[0].err.message, pendingErrorMessage); + done(); + }); + }); }); });