Skip to content

How to test the CLI app properly/easily? #731

Description

@lnxbil

Hi,

I have unit tests for all functionality including different behaviour flags (settable via cli), so I thought, I could easily use my "Example"-based tests to get the "should-be" output and the output of the compiled cli-based binary and somehow only write the run command in the comment above the "Example"-test source code, parse it and run the binary test file and compare the output.

With this idea in mind, is something like this this possible? I most certainly do not want to repeat myself.

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