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

CLI Test By Interface #36

Merged
merged 3 commits into from
Jan 9, 2017
Merged

CLI Test By Interface #36

merged 3 commits into from
Jan 9, 2017

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Jan 9, 2017

Why

Currently, cli_test.go is incomplete. Because it can not test exit code, etc.

Proposal

As one solution, introduce testing by interface. CLI struct has loader, detector and printer field, these field typed interface are mock generated by gomock when enabled test mode.

@wata727 wata727 merged commit c3ef632 into master Jan 9, 2017
@wata727 wata727 deleted the advance_test_cli branch January 9, 2017 13:49
bendrucker pushed a commit that referenced this pull request Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant