mocha-parallel-tests
mocha-parallel-tests copied to clipboard
"mocha-allure-reporter" dont work with "mocha-parallel-tests"
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?
+1
My solution is: fork mocha processes to run mocha files.
Hi, @EltonZhong could you please provide a little bit more information about the implementation of your solution?
@EltonZhong please show us how to do that