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

[WIP] Moving tests to use VTN #100

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joshuathayer
Copy link
Contributor

This is a work-in-progress PR for #63 to make sure this general shape makes sense. I'm taking a lot of inspiration from the test files which already avoid accessing the DB directly, in particular putting all the test functionality in a single crud test.

I've left the existing tests that haven't been moved away from using the DB directly in place- ie, delete, update_same_name, etc. Once those tests have been moved to use the server, I'll remove the existing tests.

Please take a look @pohlm01!

Signed-off-by: Joshua Thayer <joshuamilesthayer@gmail.com>
@joshuathayer joshuathayer marked this pull request as draft November 29, 2024 07:48
Copy link

codecov bot commented Nov 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 82.68%. Comparing base (6cbe1ac) to head (b026a69).

Files with missing lines Patch % Lines
openleadr-client/src/error.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #100   +/-   ##
=======================================
  Coverage   82.68%   82.68%           
=======================================
  Files          42       42           
  Lines        5728     5734    +6     
=======================================
+ Hits         4736     4741    +5     
- Misses        992      993    +1     

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

Copy link
Member

@pohlm01 pohlm01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, the PR looks perfect. Feel free to continue the same way.
PS: I just pushed a fix for the Clippy warnings introduced with Rust 1.83. I expect the CI to succeed once you rebased this PR on the latest main commit.

@pohlm01
Copy link
Member

pohlm01 commented Jan 6, 2025

@joshuathayer Just a kind check if you still intend to continue working on that. This issue is not a priority to us currently, so feel free to take your time. Nevertheless, it would be nice to know if we can expect any progress in the future or if you would like to hand over the work to someone else. If you got any organizational or technical questions, please let me know.

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.

Do not rely on sqlx database connection in client integration tests
2 participants