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 snapshots command #60

Merged
merged 4 commits into from
Mar 31, 2024
Merged

Add test snapshots command #60

merged 4 commits into from
Mar 31, 2024

Conversation

hgiasac
Copy link
Collaborator

@hgiasac hgiasac commented Mar 31, 2024

  • cmd: Add test snapshots command to generate function and procedure test cases that are compatible with ndc-test. Arguments and result values are generated randomly. You should update them to match your expectations. This command help connector developers to create test cases quickly.
hasura-ndc-go test snapshots --dir testdata --endpoint http://localhost:8080
  • sdk: fix ParseTypeRepresentationType function

@hgiasac hgiasac changed the base branch from main to v0 March 31, 2024 05:29
Copy link

github-actions bot commented Mar 31, 2024

Code Coverage

Package Line Rate Health
github.com/hasura/ndc-sdk-go/cmd/ndc-go-sdk/command/internal 7%
github.com/hasura/ndc-sdk-go/cmd/ndc-go-sdk/command 50%
github.com/hasura/ndc-sdk-go/cmd/ndc-go-sdk 75%
github.com/hasura/ndc-sdk-go/connector 53%
github.com/hasura/ndc-sdk-go/example/reference 65%
github.com/hasura/ndc-sdk-go/internal 46%
github.com/hasura/ndc-sdk-go/schema 42%
github.com/hasura/ndc-sdk-go/utils 43%
Summary 52% (4095 / 7823)

Minimum allowed line rate is 40%

@hgiasac hgiasac merged commit 75deed3 into v0 Mar 31, 2024
2 checks passed
@hgiasac hgiasac deleted the gen-test-snapshots branch March 31, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant