-
Notifications
You must be signed in to change notification settings - Fork 60
Does not work with allure-pytest #28
Comments
looks like this is the same issue as the --junit one |
Hmm, I'd understand for |
Let me rephrase that just to be clear. It is being generated, but its showing 0 tests executed. |
Hi @kevlened I was just curious if there was any plan to address the reporting bugs in the near future? |
Not in the near future (probably in months, not weeks or days). I'm not focusing on Browsertron much anymore and this library was a part of that work. I'll do my best to get to them when I can. I can provide guidance for any PRs though! |
@kevlened Completely understand, I hope I didn't come off as rude. I appreciate the work you did to create this. If I knew python other than to write some Selenium tests Id love to help. :) |
No worries (and thanks)! |
@kevlened Can you tell me your idea about a time for fix this issue (Bug) ? |
Please, look my changes, it is help me to work with allure-pytest in paralel. index 63d4175..8e71da4 100644
--- a/pytest_parallel/__init__.py
+++ b/pytest_parallel/__init__.py
@@ -8,6 +8,7 @@ import threading
import queue as Queue
from py._xmlgen import raw
from multiprocessing import Manager, Process
+from allure_pytest.plugin import pytest_configure as original_pytest_configure
__version__ = '0.0.9'
@@ -54,6 +55,7 @@ def run_test(session, item, nextitem):
def process_with_threads(queue, session, tests_per_worker):
+ original_pytest_configure(allur_conf)
threads = []
for _ in range(tests_per_worker):
thread = ThreadWorker(queue, session)
@@ -62,6 +64,9 @@ def process_with_threads(queue, session, tests_per_worker):
[t.join() for t in threads]
+allur_conf = None
+
+
class ThreadWorker(threading.Thread):
def __init__(self, queue, session):
threading.Thread.__init__(self)
@@ -69,6 +74,7 @@ class ThreadWorker(threading.Thread):
self.session = session
def run(self):
+ original_pytest_configure(allur_conf)
while True:
try:
index = self.queue.get_nowait()
@@ -87,6 +93,8 @@ class ThreadWorker(threading.Thread):
@pytest.mark.trylast
def pytest_configure(config):
+ global allur_conf
+ allur_conf = config
workers = parse_config(config, 'workers')
tests_per_worker = parse_config(config, 'tests_per_worker')
if not config.option.collectonly and (workers or tests_per_worker): |
@SizovIgor did you get any further with getting |
The latest ( |
is this issue resolved? i am still facing this issue with 0.1.0 |
Hi @kevlened |
I'm facing the same issue Any solution/workaround for this problem? |
Facing same issue. @kevlened - If i were to try and change the current situation, do you have a recommendation for a starting point? where in the repo should i investigate? |
Thanks for the interest. Here's what I'd do:
If you try it, let me know if you run into any issues. |
Facing same issue. |
1 similar comment
Facing same issue. |
Any solution for this issue? |
Same issue still. Any progress on this? |
When I attempt to use pytest-parallel it prevents the allure report from being generated. for instance if I run:
pytest --tests-per-worker 4 --alluredir=reports/allure
no report is generated. If i take the tests per worker argument out the report works. Any idea why this would prevent the report from being saved?
The text was updated successfully, but these errors were encountered: