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.