-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[cli] [test] Add some useful pytest arguments #1465
[cli] [test] Add some useful pytest arguments #1465
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.
LGTMig!
default=None, | ||
dest='marks', | ||
type=str, | ||
help='Only run tests with specific marks') |
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.
What're marks?
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.
e.g.:
@pytest.mark.xumingkuan
def test_hello():
...
ti test -m xumingkuan
I'll add a doc later clarify the test infrastructure.
Co-authored-by: xumingkuan <xumingkuan0721@126.com>
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!
Codecov Report
@@ Coverage Diff @@
## master #1465 +/- ##
==========================================
+ Coverage 66.69% 66.91% +0.22%
==========================================
Files 38 38
Lines 5305 5422 +117
Branches 948 955 +7
==========================================
+ Hits 3538 3628 +90
- Misses 1607 1632 +25
- Partials 160 162 +2
Continue to review full report at Codecov.
|
Related issue = #
[Click here for the format server]
e.g.:
ti test bitmasked -k huge_bitmasked
will only run the
test_bitmasked.py::test_huge_bitmasked
.ti test -x
will exit immediately after first failure occured.