Skip to content

feature/add-integration-test#84

Merged
RamyHakam merged 2 commits intomasterfrom
feature/add-integration-test
Feb 16, 2026
Merged

feature/add-integration-test#84
RamyHakam merged 2 commits intomasterfrom
feature/add-integration-test

Conversation

@RamyHakam
Copy link
Owner

This pull request introduces new integration tests for the multi-tenancy bundle, focusing on verifying tenant-aware cache isolation, full tenant lifecycle (including events and CRUD), and tenant fixture loading via command. These tests ensure the correct behavior of cache, database switching, event dispatching, and fixture loading in a multi-tenant environment.

Integration Tests for Tenant-Aware Cache and Lifecycle:

  • Added CacheSwitchingCombinedTest to verify cache isolation, deletion, and existence checks across tenant switches, as well as cache behavior without a tenant context.
  • Added FullLifecycleTest to test the end-to-end lifecycle of a tenant: database creation, switching, schema operations, CRUD, event dispatching, and tenant context consistency.

Integration Tests for Tenant Fixture Loading:

  • Added LoadTenantFixtureCommandIntegrationTest to ensure the tenant fixture loading command is registered, inserts data into the correct tenant database, and dispatches the appropriate events.
  • Added a sample tenant fixture TenantProductFixture for use in integration tests, which inserts a product entity into the tenant database.

@RamyHakam RamyHakam self-assigned this Feb 16, 2026
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.32%. Comparing base (be333b5) to head (fd413b6).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@              Coverage Diff              @@
##             master      #84       +/-   ##
=============================================
+ Coverage     64.05%   74.32%   +10.26%     
  Complexity      306      306               
=============================================
  Files            42       42               
  Lines          1227     1227               
=============================================
+ Hits            786      912      +126     
+ Misses          441      315      -126     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RamyHakam RamyHakam merged commit 1b5a1f7 into master Feb 16, 2026
4 checks passed
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