pytest-github-actions-annotate-failures
pytest-github-actions-annotate-failures copied to clipboard
Pytest plugin to annotate failed tests with a workflow command for GitHub Actions
Closes https://github.com/utgwkk/pytest-github-actions-annotate-failures/issues/59
Consider the following test ```python def test_annotation_third_party_exception(testdir): testdir.makepyfile( my_module=""" def fn(): raise Exception('oops') """ ) testdir.makepyfile( f""" import pytest from my_module import fn pytest_plugins = 'pytest_github_actions_annotate_failures' def test_fail(): fn() """...
As it shown here https://github.com/utgwkk/pytest-github-actions-annotate-failures#screenshot
Example buggy test code: ```python import pytest @pytest.fixture def my_fixture(): ... def test_foo(): my_fixture() ``` If it's ran without this plugin, pytest gives: ``` Fixture "my_fixture" called directly. Fixtures are...
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 2.0.0 to 3.0.0. Release notes Sourced from pre-commit/action's releases. pre-commit/[email protected] Breaking remove pushing behaviour. PR #164 by @asottile. see README for alternatives pre-commit/[email protected] Fixes push compatibility with...
Can warnings captured by pytest also be turned into annotations? I’m referring to the warnings output at the end of a pytest run. Pytest offers a [hook for such warnings](https://docs.pytest.org/en/6.2.x/reference.html#pytest.hookspec.pytest_warning_recorded)....
We currently use `pytest-rerunfailures` to re-run our flakey tests. These failures that get re-run and eventually succeed will still get annotated in GHA which causes some confusion for us. Would...
Have you considered hosting this plugin under @pytest-dev organization? The process can be initiated with a ticket on https://github.com/pytest-dev/meta/issues I am asking this because I am not keen to add...
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1. Release notes Sourced from pre-commit/action's releases. pre-commit/[email protected] Misc Update actions/cache to v4 #190 PR by @SukiCZ. #189 issue by @bakerkj. Commits 2c7b380 v3.0.1 8e2deeb...
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. Release notes Sourced from actions/setup-python's releases. v5.0.0 What's Changed In scope of this release, we update node version runtime from node16 to node20 (actions/setup-python#772)....