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

Create unit tests and separate them from integrated/e2e tests #22

Closed
umitkaanusta opened this issue Mar 1, 2021 · 1 comment
Closed
Labels

Comments

@umitkaanusta
Copy link
Owner

umitkaanusta commented Mar 1, 2021

There are many components of reddit-detective which can and should be unit tested. Add unit tests for those stuff, separate them from e2e tests

@umitkaanusta umitkaanusta changed the title Create unit tests and separate them from e2e tests Create unit tests and separate them from integrated/e2e tests Mar 1, 2021
@umitkaanusta umitkaanusta mentioned this issue Mar 1, 2021
@umitkaanusta
Copy link
Owner Author

Tests should measure cost, speed, and confidence. Unit tests won't be reliable in many cases since most of the functions purposefully directly interact with the DB.

For example, analytical functions can be unit tested by using a graph data structure implemented in Python. However, these tests might not realistically measure speed or confidence. reddit-detective is designed to interact with Neo4j, not with a graph implemented in Python.

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

No branches or pull requests

1 participant