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

"mocha-allure-reporter" dont work with "mocha-parallel-tests"

Open zhq745w opened this issue 5 years ago • 4 comments

mocha-parallel-tests: 2.2.1 mocha-allure-reporter: 1.4.0

I have test:

require('mocha-allure-reporter')
describe('TEST', () => {
  it('test', async () => {
    allure.createStep('test', async () => {
      console.log('my log')
    })()
  })
})

Run it: mocha-parallel-tests --max-parallel 1 test.js

... and get an error:

    TEST
allure-js-commons: Unexpected startStep() of test. There is no parent step
my log
allure-js-commons: Unexpected endStep(). There are no any steps running
      ✓ test (2ms)

How to get Allure to work with a mocha-parallel-tests?

zhq745w avatar Aug 23 '19 13:08 zhq745w

+1

EltonZhong avatar Jan 21 '20 10:01 EltonZhong

My solution is: fork mocha processes to run mocha files.

EltonZhong avatar Jan 22 '20 06:01 EltonZhong

Hi, @EltonZhong could you please provide a little bit more information about the implementation of your solution?

vitali-storchous avatar Jul 06 '21 09:07 vitali-storchous

@EltonZhong please show us how to do that

darkallure avatar Aug 25 '22 10:08 darkallure