mocha-parallel / mocha-parallel-tests

Parallel test runner for mocha tests. Looking for maintainer.
MIT License
200 stars 45 forks source link

mocha-allure-reporter: Cannot read property 'currentStep' of undefined #307

Open ajmalkhan92 opened 3 years ago

ajmalkhan92 commented 3 years ago

Im trying to add attachment to every step in allure. Unfortunately the object is empty { suites: [], options: { targetDir: 'allure-results' } and I couldn't access the current step. Works fine in mocha, Facing this issue only when executing in parallel

 await allure.createAttachment(name, function () {
          return new Buffer.from(png, 'base64')
      }, 'image/png')();
darkallure commented 2 years ago

@ajmalkhan92 any update on this issue? Did you manage to solve it?