-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 step fail hook #3384
add step fail hook #3384
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.
Nice
Codecov Report
@@ Coverage Diff @@
## master #3384 +/- ##
==========================================
- Coverage 85.27% 85.23% -0.04%
==========================================
Files 1276 1276
Lines 118999 119002 +3
==========================================
- Hits 101475 101437 -38
- Misses 17524 17565 +41
Continue to review full report at Codecov.
|
@@ -64,6 +65,16 @@ def pytest_addoption(parser): | |||
help="Nebula Graph workspace") | |||
|
|||
|
|||
def pytest_bdd_step_error(request, feature, scenario, step, step_func, step_func_args): |
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.
pytest_bdd_step_error
not by called? Or how to register the hook?
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.
it registered by pytest automatically.
- pytest scan
conftest
- match the same definition with hook in pytest-bdd.
https://github.com/pytest-dev/pytest-bdd/blob/master/pytest_bdd/plugin.py
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.
👍
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
https://discuss.nebula-graph.com.cn/t/topic/6707/2
What type of PR is this?
What does this PR do?
currently, we just display error information in
cmp_dataset
function, if there's any error not in the function, we cannot find more details.so add step error hook, and display space if using a random space.