-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add test decorators that make test cases run multiple times #145
Conversation
Conflicts: tests/functions_tests/test_linear.py
|
||
|
||
class QuietTestRunner(object): | ||
def run(self, suite): |
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.
Insert a blank line after class
The code looks good. Please write a document about its specification, and make a unit test. |
I added documents and unit tests for the decorators. |
def repeat_with_success_at_least(times, min_success): | ||
"""Decorator for multiple trial of the test case | ||
|
||
Decorated test case is launched multiple times. |
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.
"A decorated test case" ?
LGTM except the comments. And, note that tests show no adequate error messages, as they only show "fail". |
Add test decorators that make test cases run multiple times
Implement mgrid and ogrid
This PR fixes #85 .
This PR implements decorators for test cases that make them run multiple times.
Decorators are as follows