Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Ability to mock database results during development #21

Open
konnork opened this issue Apr 14, 2017 · 2 comments
Open

Ability to mock database results during development #21

konnork opened this issue Apr 14, 2017 · 2 comments

Comments

@konnork
Copy link
Member

konnork commented Apr 14, 2017

Use Case

During development, be able to generate instances of model objects for testing without having to manually create fake objects in the database

Example: I just cloned the repo and have begun working on the application reader, but I don't want to create 10 fake user accounts to test with

@konnork
Copy link
Member Author

konnork commented Apr 14, 2017

@antoniomika @roball24 Thoughts on this one?

@antoniomika
Copy link
Member

Let's just create a databuilder cli script. It'll handle the creation of users/other types of models and inputting them into the database for testing everything, but will have the ability to roll back the transaction when testing is complete. We could use something like https://www.npmjs.com/package/random-user for the generation of the fake user info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants