Write production-grade integration tests for Kafka producers and consumers using testcontainers. Covers setting up temporary test brokers, testing producer/consumer workflows, verifying message ordering guarantees, testing error scenarios, and validating delivery semantics without mocking external services.
Use when testing Kafka producer/consumer workflows end-to-end with "test Kafka integration", "verify message ordering", "test Kafka roundtrip", or "validate exactly-once semantics".
Do NOT use for unit testing with mocked Kafka (use pytest-adapter-integration-testing), implementing producers/consumers (use respective kafka--implementation skills), or schema validation (use kafka-schema-management).
Escriba pruebas de integración para productores y consumidores de Kafka utilizando contenedores de prueba. Úselo al probar flujos de trabajo de productores/consumidores, verificar el orden de mensajes, probar escenarios de error y validar la semántica exactamente una vez. Crea brokers Kafka de prueba y valida el comportamiento de transmisión de un extremo a otro sin burlarse. Fuente: dawiddutoit/custom-claude.