Skip to content

testscript: full example of testing go CLI command #297

@abitrolly

Description

@abitrolly

What is the best practice to test CLI commands written in Go with testscript? I would like to ensure that binary is always up to date, and recompiled automatically if code changes. It would be nice to just point local testscript command to the test file and make it figure out the details automatically. Is that possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions