You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) Uncaught error outside test suite
0 passing (2s)
1 failing
1) Uncaught error outside test suite:
Uncaught TypeError: hook.error is not a function
at updateFunc (node_modules\allure-mocha\src\AllureMochaReporter.ts:288:45)
at ReporterRuntime.updateFixture (node_modules\allure-js-commons\src\sdk\reporter\ReporterRuntime.ts:166:5)
at ParallelBufferedRunner.<anonymous> (node_modules\allure-mocha\src\AllureMochaReporter.ts:287:18)
at ParallelBufferedRunner.emit (node:events:529:35)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.allSettled (index 0)
Expected behavior
When running tests in parallel mode all test results are correctly reported to the allure report.
@sophiakulikova Hi, I faced this issue too, but I guess you have a wrong version in the description in devDependencies.
Because bug is about v3.0.0-beta.10 version and deps are "allure-mocha": "2.15.1".
@alexander-vershinin thanks for the note, indeed I attached the incorrect version in devDependencies. The problem occurs in the version v3.0.0-beta.10.
The run was completed successfully and the report was generated correctly.
Could you please advise if mocha-multi-reporters support will be added?
delatrie
changed the title
Mocha-allure v3.0.0-beta.10 does not support parallel mode
Mocha-allure v3.0.0-beta.10 isn't compatible with mocha-multi-reporters in parallel mode
Sep 16, 2024
Hi, everyone!
I doubt we can support parallel mode with mocha-multi-reporters due to how it initializes reporters. And, given it's not maintained actively, it's unlikely that will be changed in the future.
But we will bring our own support for using multiple reporters soon, so stay tuned. I will notify you of any updates here.
Describe the bug
The mocha-allure reporter crashes with an error "hook.error is not a function" when running tests in parallel mode
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When running tests in parallel mode all test results are correctly reported to the allure report.
Additional context
Package.lock dependencies:
Reporters.json
The text was updated successfully, but these errors were encountered: