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

Add tests for code accessing the database #130

Open
julianbrost opened this issue Nov 22, 2023 · 0 comments
Open

Add tests for code accessing the database #130

julianbrost opened this issue Nov 22, 2023 · 0 comments

Comments

@julianbrost
Copy link
Collaborator

All code that involves a database has no automatic tests at the moment, which should change. My idea for this would be to pass connection details for a database in an environment variable (if it's missing, those tests could t.Skip(), so that you can still easily run the other tests) and then start writing tests for loading objects/incidents from the database, updating them and so on. In total, this isn't a small task, so I'd do this across multiple PRs, first, establishing the basics with some simple tests, and then adding more tests.

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