Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhq745w opened this issue Aug 23, 2019 · 4 comments
Open

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

zhq745w opened this issue Aug 23, 2019 · 4 comments

Comments

@zhq745w
Copy link

zhq745w commented Aug 23, 2019

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?

@EltonZhong
Copy link

+1

@EltonZhong
Copy link

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

@vitali-storchous
Copy link

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

@darkallure
Copy link

@EltonZhong please show us how to do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants