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

Improve Testing #7

Open
ckoopmann opened this issue Apr 5, 2023 · 0 comments
Open

Improve Testing #7

ckoopmann opened this issue Apr 5, 2023 · 0 comments

Comments

@ckoopmann
Copy link
Collaborator

ckoopmann commented Apr 5, 2023

Currently we only have a very basic test for the api that depends on being connected to the dev db.

As the application grows we probably want to extend the testing and build a more robust / reproducible test that run against a specific database state that we control.

Ideas for the db connection issue:

  1. Manually spin up a test db and apply migrations to get it into the required state. And then run all tests against that db url.
  2. See if there is a way to have more fine grained control over the db state from unit tests etc. (Either by spinning up test dbs from within the test or do some kind of mocking).
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