-
Notifications
You must be signed in to change notification settings - Fork 89
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
Allow to test with snapshots #323
Labels
Comments
Where would it store the snapshot? |
This sounds like the regression testing in Postgres: comparing the output of psql scripts to the stored expected output. pgTAP could implement something similar using temporary tables and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys,
I have to update many tests of SQL functions, and it's a tough work because, when we add/update/delete new columns, we have to update all the previous assertions, which is kind of a lot of work.
I was wondering if it was possible to add snapshot feature, similar to what you can find on javascript testing library like jest
toMatchSnapshot
.For example, now we are testing like this:
And using snapshots it would be for example
The text was updated successfully, but these errors were encountered: