dispatchrun / dispatch

Entrypoint of the Dispatch ecosystem.
11 stars 1 forks source link

CLI tests #58

Closed chicoxyzzy closed 2 months ago

chicoxyzzy commented 3 months ago

We need to gradually add tests for CLI.

I think that we can start with E2E tests for now. We can run commands and check stdout / stderr and exit code. That can help to be sure that high level stuff works (for example check the environment variables loading priority). Perhaps we can use Bash / Powershell for this, but it would be great to make such tests platform independent. Not sure if we need to test malformed input as it's covered by Cobra, but maybe we still want to test error output? Unit tests could help a lot too.

chicoxyzzy commented 2 months ago

I think we can close this one as resolved. Let's just continue working on test coverage and open new issues when necessary.