testng-team/testng

Test Smell: it is not a good practice to write a return statement in the test case

Open

#2,797 opened on Aug 29, 2022

 (5 comments) (0 reactions) (0 assignees)Java (1,025 forks)github user discovery
good first issuelogging

Repository metrics

Stars
 (2,059 stars)
PR merge metrics
 (Avg merge 17h 43m) (7 merged PRs in 30d)

Description

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.

Contributor guide