mocha-parallel-tests icon indicating copy to clipboard operation
mocha-parallel-tests copied to clipboard

Skipped tests are not recorded

Open theptyza opened this issue 6 years ago • 3 comments

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)

theptyza avatar Jul 03 '19 09:07 theptyza

My understanding is that the 'pending' event doesn't have data and gets filtered out by

 if (!message_channel_1.isEventWithId(data)) {
    continue;
 }

theptyza avatar Jul 03 '19 09:07 theptyza

Any updates on this issue?

esmiralha avatar Nov 13 '19 18:11 esmiralha

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.

1999 avatar Nov 21 '19 04:11 1999