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
PytestPlugins like `pytest-mypy` `pytest-flake8` or `pytest-ruff` create one test for each file and collect all errors of the file in a single result. This PR handles the general output format...
Sometimes annotation commands are "not working" Example: https://github.com/ddterm/gnome-shell-extension-ddterm/actions/runs/5654874022/job/15318855551#step:13:950 There are only 2 annotations for the entire workflow - so it shouldn't be ignored because of limits.
I raised this as I seen that while the plugin installs with pytest 7, 8 it does not work with them, and that is also visible in the testing pipelines...
Hi! I'm having trouble getting this to work. I've installed the plugin via our `requirements.txt` file. We use docker, and so I set the env var as mentioned. I see...
``` Failed: nomatch: '::error file=test_annotation_pytest_error\\.py,line=8::test_error.*' and: '' and: '::error file=test_annotation_pytest_error.py,line=1168::test_error%0A%0AFailed: Fixture "fixture" called directly. Fixtures are not meant to be called directly,%0Abut are created automatically when test functions request them...
- Supported only in pytest >= 6.0.0 ([docs](https://docs.pytest.org/en/7.2.x/reference/reference.html#pytest.hookspec.pytest_warning_recorded)) - Adds an `--exclude-warning-annotations` option to exclude warning annotations Closes #45
Related: * Closes #85 * Makes https://github.com/pytest-dev/pytest-github-actions-annotate-failures/pull/68 a bit simpler