-
Notifications
You must be signed in to change notification settings - Fork 388
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
Multiple run name by using regex at cmd #1322
Conversation
@@ -48,39 +48,35 @@ def test_filter_run_names(self): | |||
"There should be two runs for this test.") | |||
|
|||
# Filter runs which name starts with `test_files_`. | |||
test_runs = self.__get_runs('test_files_') | |||
test_runs = self.__get_runs('test_files_*') |
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.
Could you add a test where there is no '*' in the run name?
self.assertEqual(len(test_runs), 1, | ||
"There should be one run for this test.") | ||
|
||
# Filter runs which name contains `test_files*`. | ||
test_runs = self.__get_runs('test_files*') | ||
self.assertEqual(len(test_runs), 1, | ||
self.assertEqual(len(test_runs), 2, | ||
"There should be one run for this 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.
Please update the message of the assert here.
test_runs = self.__get_runs('%') | ||
self.assertEqual(len(test_runs), 1, | ||
self.assertEqual(len(test_runs), 0, | ||
"There should be one run for this 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.
Please update the message of the assert here.
User can get command line results for multiple runs by using Python regex expression.
7572ccf
to
4766932
Compare
User can get command line results for multiple runs by using Python regex expression.