Skip to content
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

feat: add support for custom xfail statuses in pytest #318

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

gibiw
Copy link
Contributor

@gibiw gibiw commented Dec 13, 2024

This pull request includes several updates and improvements to the qase-pytest plugin, focusing on adding new features, fixing existing issues, and updating dependencies. The most important changes include the ability to override statuses for tests marked with the xfail marker, updates to the configuration options, and dependency updates.

New Features:

  • Added the ability to override statuses for tests marked with the xfail marker. Failed tests are assigned the skipped status, and passed tests are assigned the passed status by default. Custom statuses can be specified via qase.config.json or environment variables. (qase-pytest/changelog.md, qase-pytest/docs/CONFIGURATION.md, qase-pytest/src/qase/pytest/conftest.py, qase-pytest/src/qase/pytest/options.py, qase-pytest/src/qase/pytest/plugin.py) [1] [2] [3] [4] [5] [6] [7]

Configuration Updates:

  • Updated the configuration options to include xfailStatus for failed and passed tests in the qase.config.json file and corresponding environment variables. (qase-pytest/docs/CONFIGURATION.md)

Dependency Updates:

  • Updated the version of qase-python-commons dependency to 3.2.4 in the pyproject.toml file. (qase-pytest/pyproject.toml)

Bug Fixes:

  • Fixed an issue with handling video and trace recording for Playwright tests where the video and trace were not attached to the test result if the test was part of a class. (qase-pytest/changelog.md)

Version Update:

  • Updated the plugin version from 6.1.9 to 6.1.10 in the pyproject.toml file. (qase-pytest/pyproject.toml)

- Support for custom statuses of xfail-marked tests in pytest.
- Default statuses: `skipped` (failed xfail) and `passed` (successful xfail).
- Configuration values can be set via `qase.config.json` or environment variables:
    - `QASE_PYTEST_XFAIL_STATUS_XFAIL`
    - `QASE_PYTEST_XFAIL_STATUS_XPASS`
@gibiw gibiw force-pushed the feat/pytest-xfail branch from 82b1f16 to 0e025c2 Compare December 13, 2024 12:22
@gibiw gibiw merged commit d1b2bd5 into main Dec 13, 2024
36 checks passed
@gibiw gibiw deleted the feat/pytest-xfail branch December 13, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant