Skip to content

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

@TestSmell

Description

@TestSmell

Hi!

I notice that you write a test case with a return statement.
image

It is not a good idea to write the return statement in your test case.
So I would like to know if is it really a useful test case? It also has no assertions.
Maybe I think you should remove the @test annotation from this method ? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions