-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 coverage to file_regex status check method #1511
Add coverage to file_regex status check method #1511
Conversation
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.
line 146: These is no file_regex.yml file in tutorials/test_status to link to, please make sure the name of yml file is correct.
Corrected file name
Corrected file name
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## devel #1511 +/- ##
==========================================
+ Coverage 77.54% 77.97% +0.44%
==========================================
Files 57 57
Lines 6615 6615
==========================================
+ Hits 5129 5158 +29
+ Misses 1486 1457 -29 ☔ View full report in Codecov by Sentry. |
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 change the comment in 143 to match with the correct yml file name that will be linked for test.
Fixed comment in line 143
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.
The comment in the methods matches the linked yml file.
@braeeast2001 for style check, please run buildtest sytle -a |
@shahzebsiddiqui I think @braeeast2001 first should check if the file is exists in the directory then do a regex check. I think she should use this test https://github.com/buildtesters/buildtest/blob/devel/tutorials/test_status/exists.yml for her regression test. What do you think? |
tests/builders/test_builders.py
Outdated
@@ -151,9 +151,20 @@ def test_multicompilers_with_script_schema(): | |||
|
|||
|
|||
def test_regex_check(): | |||
"""This test buildspec using status check with 'status_regex'""" | |||
"""This test buildspec using status check with 'status_regex'""" |
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.
change status_regex
-> regex
in doc string
Create new test for valid file_name with invalid regex and correct spelling mistake
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.
Thanks @braeeast2001 for making all the necessary changes.
The style check is failed, please run buildtest sytle -a
and see this for more info: https://buildtest.readthedocs.io/en/devel/contributing/code_contribution_guide.html
and buildspec was invalid
os.path.join(here, "regex_on_invalids.yml")], | ||
buildspecs=[ | ||
os.path.join(here, "regex_on_filename.yml"), | ||
os.path.join(here, "regex_on_invalids.yml"), |
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 delete the comma , before ]
Add test_file_regex to test_builders.py using regex_on_filename.yml.