Skip to content
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

【问题】测试报告中,失败数统计错误 #126

Open
792817377 opened this issue Jul 12, 2022 · 4 comments
Open

【问题】测试报告中,失败数统计错误 #126

792817377 opened this issue Jul 12, 2022 · 4 comments

Comments

@792817377
Copy link

测试报告中,失败数统计错误,如图,本身有十几个用例错误了,但是只统计到1个失败
main中设置rerun=3,不知道这个是否有影响

9IDQ{$KZ9VRCX(JVFB_@BW7

@defnngj
Copy link
Collaborator

defnngj commented Jul 12, 2022

这个要具体的失败原因,如果失败不是在 用例当中,就统计不到了,例如 fixture (start/ start_class/... 等) 属于用例的前置步骤,在这里添加了断言,并且失败了,那么就无法统计到用例本身。

@792817377
Copy link
Author

如图,可以看到,断言是在testcase里面的,其他失败的也都是
image
image

@792817377
Copy link
Author

发现如果不配置return,统计的错误数就是正确的,如果配置了return,如return=3,数量统计就错误

@jingyuezijing
Copy link

发现如果不配置return,统计的错误数就是正确的,如果配置了return,如return=3,数量统计就错误

/issues/121 我也遇到同样的问题。
@defnngj
求快点修复呀 我要把测试报告发布到公司gitlab的站点上去。现在都是设置的rerun=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants