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

Consider using sqlite-generate to make randomized test databases #856

Open
obi1kenobi opened this issue Jun 23, 2020 · 0 comments
Open

Consider using sqlite-generate to make randomized test databases #856

obi1kenobi opened this issue Jun 23, 2020 · 0 comments
Labels
maintainer quality-of-life Features that ease development, but are not necessarily visible to package users.

Comments

@obi1kenobi
Copy link
Contributor

https://github.com/simonw/sqlite-generate is a tool that has the ability to randomly generate SQLite databases full of random data: various data types, various shapes and sizes, foreign keys between tables, etc. See the README for some great examples, as well as discussion on foreign keys here: simonw/sqlite-generate#7

This tool was built to improve the test suite for Datasette, a popular data exploration and data set publishing tool by the same author. Datasette has some similar testing objectives as GraphQL compiler ("works with arbitrary datasets" etc.) and it would be a good idea to look into its testing approach in more depth and see if there are any aspects we should adopt. I'll open a separate issue for this.

@obi1kenobi obi1kenobi added the maintainer quality-of-life Features that ease development, but are not necessarily visible to package users. label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer quality-of-life Features that ease development, but are not necessarily visible to package users.
Projects
None yet
Development

No branches or pull requests

1 participant