diff --git a/qase-pytest/changelog.md b/qase-pytest/changelog.md index 0751c948..07c59643 100644 --- a/qase-pytest/changelog.md +++ b/qase-pytest/changelog.md @@ -1,3 +1,9 @@ +# qase-pytest 7.0.7 + +## What's new + +- Disable reporter for collect mode. + # qase-pytest 7.0.6 - Fixed issue with running tests in AWS Lambda. diff --git a/qase-pytest/pyproject.toml b/qase-pytest/pyproject.toml index b7a310c0..4b64dfd9 100644 --- a/qase-pytest/pyproject.toml +++ b/qase-pytest/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qase-pytest" -version = "7.0.6" +version = "7.0.7" description = "Qase Pytest Plugin for Qase TestOps and Qase Report" readme = "README.md" keywords = ["qase", "pytest", "plugin", "testops", "report", "qase reporting", "test observability"] diff --git a/qase-pytest/src/qase/pytest/conftest.py b/qase-pytest/src/qase/pytest/conftest.py index 60cbc0b0..d4904f27 100644 --- a/qase-pytest/src/qase/pytest/conftest.py +++ b/qase-pytest/src/qase/pytest/conftest.py @@ -18,6 +18,10 @@ def pytest_configure(config): "qase_parametrize_ignore: mark test to ignore parameters in Qase reports" ) + # Skip plugin registration if pytest is running in collect-only mode + if config.option.collectonly: + return + config_manager = setup_config_manager(config) QasePytestPluginSingleton.init(reporter=QaseCoreReporter(