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

test with hedgehog & postgresql #10

Open
bergey opened this issue Dec 3, 2020 · 0 comments
Open

test with hedgehog & postgresql #10

bergey opened this issue Dec 3, 2020 · 0 comments

Comments

@bergey
Copy link
Owner

bergey commented Dec 3, 2020

The current hedgehog tests are focused on the ability to roundtrip between printer & parser. This is a good test of both, but falls short of confirming that Postgres agrees that we're generating valid syntax. It would be good to have a family of tests that generate random ASTs and asks Postgres to confirm validity. (This direction seems easier than the reverse, or at least, involves writing Haskell, rather than collecting a test suite of widely representative SQL from other projects.)

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