testng-team/testng

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

Aberta

#2.797 aberto em 29 de ago. de 2022

 (5 comentários) (0 reação) (0 responsável)Java (1.025 forks)github user discovery
good first issuelogging

Métricas do repositório

Stars
 (2.059 estrelas)
Métricas de merge de PR
 (Mesclagem média 17h 43m) (7 fundiu PRs em 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.

Guia do colaborador