-
Notifications
You must be signed in to change notification settings - Fork 306
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
Decorate potentially flaky tests with @pytest.mark.flaky
from pytest-rerunfailures
#2483
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2e862dd
Regenerate pinned requirements
namurphy 0b9a28a
Add pytest-rerunfailures to pyproject.toml requirements
namurphy c2acecf
Decorate with @pytest.mark.flaky
namurphy fb733e3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 90f5122
Revert "Decorate with @pytest.mark.flaky"
namurphy e66e88b
Undo autofix from blacken-docs via pre-commi
namurphy 45cb258
Revert "Regenerate pinned requirements"
namurphy 93d464b
Add pytest-rerunfailures to requirements.txt
namurphy 8f4ac15
Merge branch 'pytest-rerunfailures' of github.com:namurphy/PlasmaPy i…
namurphy a6fd32c
Add changelog entry
namurphy 219309d
Merge branch 'main' of github.com:PlasmaPy/PlasmaPy into pytest-rerun…
namurphy f49eb00
Decorate with @pytest.mark.flaky
namurphy cb1c977
Merge branch 'main' of github.com:PlasmaPy/PlasmaPy into pytest-rerun…
namurphy 3bb9b09
Add tip on @pytest.mark.flaky to testing guide
namurphy 8b57469
Merge branch 'main' into pytest-rerunfailures
namurphy de5c783
Revert test_synthetic_radiography.py
namurphy 2b1e568
Decorate with @pytest.mark.flaky
namurphy c5ad7b0
Add comments to decorated tests
namurphy 7d5f9f7
Merge branch 'main' into pytest-rerunfailures
namurphy File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Added ``pytest-rerunfailures`` to the ``tests`` set of dependencies, | ||
and applied it to a flaky test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pheuer — One of the tests in this file failed intermittently in a different PR, so I figured it would be worth using the
@pytest.mark.flaky
decorator here so that the test will get repeated in case of a failure. It'd probably be worth adding this decorator to all unit tests that require an internet connection.