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

System Tests with full in memory DB support #57

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

matheusgomes28
Copy link
Owner

@matheusgomes28 matheusgomes28 commented Mar 18, 2024

This PR implements full system tests / end2end tests using an in memory mysql databse. The motivation for this work was to get coverage for the lines that require a real db connection.

These tests are still expensive to run, as the internal DB server needs to be started (~50ms), so only need to have system tests for fully testing a feature. Leave smaller tests for unit tests.

Makefile Outdated Show resolved Hide resolved
@matheusgomes28 matheusgomes28 force-pushed the system-tests-framework branch 6 times, most recently from a37728e to b003b19 Compare March 19, 2024 22:00
@matheusgomes28 matheusgomes28 force-pushed the system-tests-framework branch from b003b19 to f23d233 Compare March 19, 2024 22:03
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 90.38462% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 34.64%. Comparing base (4f0c2c6) to head (42550f9).

Files Patch % Lines
tests/system_tests/endpoint_tests/helpers.go 90.38% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
+ Coverage   24.96%   34.64%   +9.68%     
==========================================
  Files          14       15       +1     
  Lines         661      713      +52     
==========================================
+ Hits          165      247      +82     
+ Misses        477      440      -37     
- Partials       19       26       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matheusgomes28 matheusgomes28 merged commit 1672494 into main Mar 19, 2024
5 checks passed
@matheusgomes28 matheusgomes28 deleted the system-tests-framework branch March 19, 2024 22:17
AlDu2407 pushed a commit to AlDu2407/urchin that referenced this pull request Mar 22, 2024
This PR implements full system tests / end2end tests using an in memory
mysql databse. The motivation for this work was to get coverage for the
lines that require a real db connection.

These tests are still expensive to run, as the internal DB server needs
to be started (~50ms), so only need to have system tests for fully
testing a feature. Leave smaller tests for unit 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

Successfully merging this pull request may close these issues.

1 participant