-
-
Notifications
You must be signed in to change notification settings - Fork 86
[feature] Added retry mechanism to SeleniumTestMixin #464 #472
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
Conversation
|
The test suite would fail if the test is flaky The test will be considered as pass, it it has success rate of 80% |
5ff8818 to
89d1aef
Compare
nemesifier
left a comment
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.
Please double check the docs text.
docs/developer/test-utilities.rst
Outdated
| methods that must be used across all OpenWISP modules based on Django to | ||
| enforce best practices and avoid flaky tests. | ||
|
|
||
| It also provides a retry mechanism for flaky tests, which executes the a |
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.
| It also provides a retry mechanism for flaky tests, which executes the a | |
| It also provides a retry mechanism for *"flaky tests"*, which repeats any |
docs/developer/test-utilities.rst
Outdated
| This functionality can be configured using the following class attributes: | ||
|
|
||
| - ``retry_max``: Number of times to retry a test (default: ``5``). | ||
| - ``retry_delay``: Numbed of seconds to wait before retrying a test |
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.
| - ``retry_delay``: Numbed of seconds to wait before retrying a test | |
| - ``retry_delay``: Number of seconds to wait before retrying a test |
docs/developer/test-utilities.rst
Outdated
|
|
||
| - ``retry_max``: Number of times to retry a test (default: ``5``). | ||
| - ``retry_delay``: Numbed of seconds to wait before retrying a test | ||
| (default: ``2``). |
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.
Why do we need to wait to repeat tests? I'd set this to zero to avoid increasing build times.
Retry selenium tests if the tests fails on the first attempt. This prevents failng the CI build from flaky tests. Closes #464
89d1aef to
750df2f
Compare
Checklist
Reference to Existing Issue
Closes #464
Description of Changes
Retry selenium tests if the tests fails on the first attempt. This prevents failng the CI build from flaky tests.