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

Move cli_test.go to integration test #1500

Merged
merged 1 commit into from
Sep 3, 2022
Merged

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Sep 1, 2022

This PR removes the current mock-based cmd/cli_test.go and adds integration tests that do the same testing.

The purpose of this change is mainly for #1496. Mock-based testing leveraged existing Terraform rules to inject test rules. However, with this change, all rules are provided as plugins, so mock-based tests will no longer work.

Integration tests don't need mocks and will continue to work correctly. In addition, since it does not use mocks, it has the advantage of more accurate testing and the ability to remove gomock and loader_mock.go.

@wata727 wata727 force-pushed the integration_test_for_cli branch from dc9cc3b to 879ea46 Compare September 3, 2022 13:08
@wata727 wata727 merged commit 46b52b6 into master Sep 3, 2022
@wata727 wata727 deleted the integration_test_for_cli branch September 3, 2022 13:18
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.

1 participant