-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
The skip method in mocha only skips the current test case, not the others.
But within a step, the behavior of this.skip is different: subsequent steps get ignored
Example:
describe('Skip & step interaction ', function() {
step('step 1', async function() {
console.log('hello 1');
});
step('step 2', async function() {
this.skip();
console.log('hello 2');
});
step('step 3', async function() {
// This step should probably run, yet it get skipped
console.log('hello 3');
});
});
Produces the following output:
Skip & step interaction
hello 1
✓ step 1
- step 2
- step 3
(Used mocha 6.2.2)
Metadata
Metadata
Assignees
Labels
No labels