Closed
Description
🚀 Feature Proposal
Mocha supports skipping tests programmatically (in both before
and it
) as:
describe("Some test" () => {
it("Should skip", function () {
if (true) {
this.skip(); // test marked as skipped, no further part run
}
notInvoked();
});
}):
Motivation
It's very useful for cases where during tests setup we find out whether test can be pursued or not e.g. we need some external data, but due to some unavailability we can't so we decide to skip tests.
Is this somewhere on a roadmap?