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

Integration test config rework #746

Merged
merged 6 commits into from
Jan 16, 2025

Conversation

jakubfijalkowski
Copy link
Member

Two (three) small changes that should make the integration test helpers easier to use:

  1. DbContextInitializer works with Npgsql now,
  2. ConfigurationOverrides allows specifying arbitrary config strings now.

Plus, a test connection string management is now in a separate class that loads the connection
string base not from env vars, but from the supplied configuration builder itself. Allows, e.g., to
specify the base connection stirng in appsettings.json file.

One allows to pass arbitrary configuration, the other one manages the
connection string. Moreover, connection string injection uses config not
from env, but from the "parent" configuration.
Copy link

github-actions bot commented Jan 16, 2025

test: Run #2101

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
747 746 0 1 0 0 0 209ms

🎉 All tests passed!

Github Test Reporter

🔄 This comment has been updated

@jakubfijalkowski jakubfijalkowski force-pushed the feature/integration-test-config branch from 7b8a3d2 to f21b042 Compare January 16, 2025 14:11
@jakubfijalkowski jakubfijalkowski merged commit 305efc4 into v9.0-preview Jan 16, 2025
6 checks passed
@jakubfijalkowski jakubfijalkowski deleted the feature/integration-test-config branch January 16, 2025 14:20
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (c89ee37) to head (f21b042).
Report is 7 commits behind head on v9.0-preview.

Additional details and impacted files
@@         Coverage Diff         @@
##   v9.0-preview   #746   +/-   ##
===================================
===================================

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

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.

4 participants