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

Test: Improved CLI testing infrastructure #7198

Merged
merged 1 commit into from Aug 11, 2014

Conversation

spinscale
Copy link
Contributor

Added a LoggingTerminal class to the infrastructure, which can be used
in tests, to make sure that CLI commands write out the right data

@@ -89,4 +92,30 @@ public void close() throws IOException {
}
}

public static class LogggingTerminal extends TerminalMock {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/LogggingTerminal/LogggggggggingTerminal

Logging is a bit confusing (I'd expect it to use a logger)... how about CapturingTerminal?

@uboness
Copy link
Contributor

uboness commented Aug 9, 2014

small comment, other than that... LGTM

Added a CaptureOutputTerminal class to the infrastructure, which can be used
in tests, to make sure that CLI commands write out the right data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v1.4.0.Beta1 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants