testng-team/testng
Test Smell: it is not a good practice to write a return statement in the test case
开放
#2,797 创建于 2022年8月29日
good first issuelogging
仓库指标
- 星标
- (2,059 个星标)
- PR 合并指标
- (平均合并 17小时 43分钟) (30 天内合并 7 个 PR)
描述
Hi! I notice that you write a test case with a return statement. For example,
It is not a good idea to write the return statement in your test case based on the definition of the test case. So I would like to know if is it really a useful test case? And no assertion is in this test case. Maybe I think you should remove this test case from your test code. Thanks.