Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test helpers / tests for command output #122

Closed
edaniszewski opened this issue Feb 20, 2018 · 1 comment · Fixed by #140
Closed

add test helpers / tests for command output #122

edaniszewski opened this issue Feb 20, 2018 · 1 comment · Fixed by #140
Assignees

Comments

@edaniszewski
Copy link
Contributor

this will likely be a bit of work upfront to get it done right, but once we have one example of how to do it, it should be fairly easy to apply to all commands afterwards.

will likely want to use the idea of "golden files" (for which there are many examples of online)

@timfallmk
Copy link
Contributor

I haven't used "golden files" before, but I think we could go down two other routes as well.

  1. Use mocking to create a full test suite.
  2. Test against an actual server.

Both come with drawbacks and benefits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants