mocha-parallel-tests
mocha-parallel-tests copied to clipboard
Skipped tests are not recorded
Can only see this problem in the latest 2.2.1 version.
Sample test
const chai = require('chai');
const expect = chai.expect;
describe('Suite', function() {
it('Test pass', function() {
expect(true).to.be.true;
});
xit('Test skip', function() {
expect(true).to.be.true;
});
});
xdescribe('Suite skip', function() {
it('Test inside skipped suite', function() {
expect(true).to.be.true;
});
});
With mocha:
Suite
√ Test pass
- Test skip
Suite skip
- Test inside skipped suite
1 passing (15ms)
2 pending
With [email protected]:
Suite
√ Test pass (1ms)
- Test skip
Suite skip
- Test skip
1 passing (356ms)
2 pending
With [email protected]:
Suite
√ Test pass (1ms)
Suite skip
1 passing (345ms)
My understanding is that the 'pending' event doesn't have data and gets filtered out by
if (!message_channel_1.isEventWithId(data)) {
continue;
}
Any updates on this issue?
Thanks for reporting this. Right now I don't have enough time to fix mocha-parallel-tests issues but I will be more than happy to help you to fix it.