Skip to content

Suite: Subtests should also trigger SetupTest and TearDownTest #1031

@odannyc

Description

@odannyc

I know this is probably a breaking change but I have some tests written using table driven design. I'd like for the tests ran with suite.Run(name string, func(){}) to also trigger SetupTest and TearDownTest for every instance of the subtest.

Is this currently possible?

If not then we can add a new func SetupSubtest and TearDownSubtest and run those for every subtest.

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