Testcontainer Magento Data (Rust)

View on GitHub

Rust crate for spinning up pre-seeded Magento and Mage-OS database and OpenSearch Testcontainers in async integration tests.

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 sqlx queries 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.

More in Automation Tools

View all Automation Tools →