Search code examples
node.jsgulpmocha.jsgulp-mocha

Skipped tests in mocha shown pending in report


I am using gulp-mocha to execute my mocha tests with mochawesome-screenshots report

For a particular condition I should skip my test.

enter image description here

But in report and cli those tests are shown pending not skipped

enter image description here

enter image description here

I need to log the test which i skipped to be skipped not pending.

Thanks in advance.


Solution

  • Skipped tests are "Pending" by definition in mocha:

    Anything skipped will be marked as pending, and reported as such.