Skip to content

Unit Tests #2

@mikeblakeuk

Description

@mikeblakeuk

Would you write unit tests for this?

I've seen there is a TestConsole. I was wondering if you would use it or if testing commands is even a good idea?

Do we want to test the command line syntax to make sure it doesn't break?
Do we just want to test the actual commands and maybe use a MockFileSystem?

I've found with System.CommandLine, bugs are only found at runtime

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