Skip to content

Commit

Permalink
fix: an issue with the pytest-xdist
Browse files Browse the repository at this point in the history
Fixed an issue with the `pytest-xdist` that caused the tests to be run in parallel and completed the test run before the
results were uploaded to Qase.
  • Loading branch information
gibiw committed Sep 25, 2024
1 parent b7e31ec commit da11159
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions qase-pytest/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# qase-pytest 6.1.2

## What's new

Fixed an issue with the `pytest-xdist` that caused the tests to be run in parallel and completed the test run before the
results were uploaded to Qase.

# qase-pytest 6.1.1

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-pytest/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-pytest"
version = "6.1.1"
version = "6.1.2"
description = "Qase Pytest Plugin for Qase TestOps and Qase Report"
readme = "README.md"
keywords = ["qase", "pytest", "plugin", "testops", "report", "qase reporting", "test observability"]
Expand Down
3 changes: 2 additions & 1 deletion qase-pytest/src/qase/pytest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def pytest_sessionfinish(self, session, exitstatus):
else:
self.reporter.complete_worker()

self.reporter.complete_run()
if QasePytestPlugin.meta_run_file.exists() == False:
self.reporter.complete_run()

@pytest.hookimpl(hookwrapper=True)
def pytest_runtest_protocol(self, item):
Expand Down

0 comments on commit da11159

Please sign in to comment.