testng-team/testng

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

Offen

#2.797 geöffnet am 29.08.2022

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (1.025 Forks)github user discovery
good first issuelogging

Repository-Metriken

Stars
 (2.059 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 17h 43m) (7 gemergte PRs in 30 T)

Beschreibung

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