Skipped tests in mocha shown pending in report

1.6k Views Asked by At

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.

1

There are 1 best solutions below

0
Yury Fedorov On BEST ANSWER

Skipped tests are "Pending" by definition in mocha:

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