Overview
When building high-performance sidecars, indexers, or replication workers in Rust alongside Magento 2 or Mage-OS, mocking MySQL tables rarely catches real schema quirks. testcontainers-magento-data brings EcomDev's pre-seeded OCI data containers directly into cargo test.
Installation
Add the crate as a dev dependency in Cargo.toml:
[dev-dependencies]
testcontainers-magento-data = "0.1"Typical Use Cases
- Binlog & changelog consumers: Test MySQL replication services like Mage-OS Database Changelog against live Magento schemas.
- Data exporters & media tools: Validate
sqlxqueries against full EAV and catalog structures with sample data already loaded. - Zero manual fixtures: Skip hand-written SQL migrations in your Rust integration test harness.