-
Notifications
You must be signed in to change notification settings - Fork 28
Add simple e2e tests for all command
#15
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
Conversation
…d spec generation
…import is included in the top-level schema.gotmpl
… object attribute types
…ObjectAttributeType
bendbennett
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
| t.Parallel() | ||
|
|
||
| testOutputDir := t.TempDir() | ||
| mockUi := cli.NewMockUi() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. TIL there's a cli.NewMockUi().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will need to be updated after hashicorp/terraform-plugin-codegen-spec#26 is merged
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
allcommand and compares a temporary test directory with the goldenoutputdirectory intestdata. Moved the existingexample/ir.jsonand used this as the first test entry.Example test failure if golden files mismatch with outputted files