allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Test report does not generate when using pytest-parallel

Open jacekAG opened this issue 6 years ago • 3 comments

I'm submitting a ...

  • [x] bug report
  • [ ] feature request
  • [ ] support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

I am running tests in paralell using pytest-paralell and test reports are not generated. I have tried --workers and --tests-per-worker .

allure-python-commons==2.5.5 pytest==4.0.1 pytest-parallel==0.0.9

jacekAG avatar Jan 28 '19 14:01 jacekAG

Hey all, any update on the above bug, im also facing the same issue @sseliverstov

yokesh440 avatar Jul 18 '19 06:07 yokesh440

I'm write comment in paralel project. You can look it https://github.com/browsertron/pytest-parallel/issues/28#issuecomment-535345123

SizovIgor avatar Sep 26 '19 05:09 SizovIgor

Pre 2.10 version of allure-python did too much of thread isolation, leading to hooks added in one thread being inaccessible from another. Hooks responsible for flushing test results to the disk were registered in the main thread but the actual calls were made from a thread worker (a different thread), thus, no output files were emitted.

Starting from 2.10 thread isolation was weakened (see #647). Hooks are not thread isolated anymore and it became possible to run steps in parallel, but an attempt to use pytest-parallel results in the same error as in #697. As for now it looks like fixing #697 will fix this issue as well.

delatrie avatar Jan 20 '23 08:01 delatrie