Skip to content

The TestCmd pattern does not provide functionality to validate output #215

Open
@stuartpa

Description

@stuartpa

Currently the Testcmd function just executes a command, but doesn't allow for further verification that the output generated was expected

cmdparser.TestSetup(t)
cmdparser.TestCmd[*AddEndpoint]()
cmdparser.TestCmd[*AddContext]("--endpoint endpoint")
cmdparser.TestCmd[*UseContext]("--name context")

Provide a pattern that enables TestCmd to validated the output was as expected, maybe an array/slice of RegExs that must validate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions