Evaluate Testcontainers integration: recommend selective adoption for local dev and SDK tests#351
Draft
Evaluate Testcontainers integration: recommend selective adoption for local dev and SDK tests#351
Conversation
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
Co-authored-by: galaxyeye <1701451+galaxyeye@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Assess benefits of introducing Testcontainers
Evaluate Testcontainers integration: recommend selective adoption for local dev and SDK tests
Feb 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Comprehensive evaluation of Testcontainers for managing MongoDB/Redis dependencies in integration tests. Current approach relies on manual Docker Compose startup and shared service instances across tests.
Key Findings
Recommend selective adoption (not full replacement):
Quantified benefits:
docker compose up)Costs:
Deliverables
Evaluation Reports (5 docs, ~60KB)
testcontainers-evaluation.md,testcontainers-evaluation.en.md): Current architecture, benefits/costs, scenario evaluation, implementation roadmaptestcontainers-evaluation.quick-ref.md): Decision tables, ROI matrix, common patternstestcontainers-evaluation.visual-comparison.md): Workflow diagrams, decision treestestcontainers-evaluation.INDEX.md): Reading guide by roleProof of Concept (4 files)
AbstractMongoDBTestcontainerTest.kt): Spring Boot integration with dynamic property injectionWebPagePersistenceIT.kt): 4 integration test scenariospom.xml.example): BOM setup, dependencies, profilesREADME.md): Quick start, performance tuning, troubleshootingPOC Example
Container lifecycle managed automatically. Connection details injected via
@DynamicPropertySource.Implementation Path
pulsar-it-tests, measure performancesdks/kotlin-sdk-testsif successfulTESTING.md, team trainingDo not: Replace CI/CD Docker Compose, use for browser tests, or mandate for all tests.
Architecture Integration
Coexistence with current JUnit 5 Tags taxonomy (
@Tag("RequiresDocker")).💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.