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

Feature: generate golden file #140

Closed
Tracked by #142
nao1215 opened this issue Oct 31, 2023 · 1 comment
Closed
Tracked by #142

Feature: generate golden file #140

nao1215 opened this issue Oct 31, 2023 · 1 comment

Comments

@nao1215
Copy link
Owner

nao1215 commented Oct 31, 2023

Is your feature request related to a problem? Please describe.

We often manually create expectations for response data. This process is very tedious. Therefore, we will add a function to generate the expected value data in a specified path when the test is executed with a specific procedure.

Describe the solution you'd like

We would add the Golden() method. This method writes response body data to the specified file path. However, the write operation is performed only when certain flags are enabled.

The method to enable the flags is under consideration. For example, we can create a spectest cli command, and the Golden() method will generate a file if the --golden option of this command is enabled.

@nao1215 nao1215 mentioned this issue Oct 31, 2023
19 tasks
@nao1215
Copy link
Owner Author

nao1215 commented Nov 8, 2023

Done #195

@nao1215 nao1215 closed this as completed Nov 8, 2023
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

No branches or pull requests

1 participant