Skip to content

Test report does not generate when using pytest-parallel #348

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

Open
1 of 3 tasks
jacekAG opened this issue Jan 28, 2019 · 3 comments
Open
1 of 3 tasks

Test report does not generate when using pytest-parallel #348

jacekAG opened this issue Jan 28, 2019 · 3 comments
Assignees
Labels
bug Something isn't working theme:pytest

Comments

@jacekAG
Copy link

jacekAG commented Jan 28, 2019

I'm submitting a ...

  • 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

@yokesh440
Copy link

yokesh440 commented Jul 18, 2019

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

@SizovIgor
Copy link

I'm write comment in paralel project. You can look it kevlened/pytest-parallel#28 (comment)

@delatrie
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working theme:pytest
Projects
None yet
Development

No branches or pull requests

6 participants