-
Notifications
You must be signed in to change notification settings - Fork 770
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 unit test for conditional marks. #17005
base: master
Are you sure you want to change the base?
Add unit test for conditional marks. #17005
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
For unitest, please do not use file name with pattern "test_*.py". Pytest considers all file names with such pattern as test scripts. They could be collected by pytest as normal test scripts. |
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.
LGTM
Hi, @wangxin , I changed to use unittest framework here, which pytest can support. The script will be named as |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Other things need to consider:
|
The document for unittest or for explaining the logic for conditional mark? If the second one, can I update it in PR #16930, as this PR is for unittest. Maybe I can also add the explaination for the unittest in this PR. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Add document for how to run unit test. |
For unit test, it is supposed to cover boundary and corner cases. There are many more scenarios to be covered. For example:
|
Design document for unittest is done. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
8ba936c
to
c230795
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
This PR is based on PR #16930. After changing the logic of conditional marks, we need to add unit test to make sure it works as expected.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
This PR is based on PR #16930. After changing the logic of conditional marks, we need to add unit test to make sure it works as expected.
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation