Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 23, 2025

The testing documentation was missing references to Testcontainers, a library that simplifies managing containerized database instances during testing.

Changes

  • choosing-a-testing-strategy.md: Added Testcontainers mention in the section discussing Docker-based database setup, highlighting its role in automating container lifecycle management for tests.

  • testing-with-the-database.md: Added Testcontainers mention in the "Setting up your database system" section where Docker images are discussed.

Both mentions link to the Testcontainers .NET modules page and integrate naturally into existing Docker-related discussions.

Context

Testcontainers addresses a common pain point: manually managing database containers for testing. The library provides programmatic control over container lifecycle, making it easier to test against production database systems as recommended throughout the testing documentation.

Original prompt

This section details on the original issue you should resolve

<issue_title>Add a mention to testcontainers</issue_title>
<issue_description>### Type of issue

Missing information

Description

The "Choosing a testing strategy" page explains different scenarios on how to test code that relies on a database, each with its pro's and con's.
However it doesn't mention testcontainers, which I believe can improve the quality of this article (and the tests).

It can also be mentioned on the page Testing against your production database system

Based on some open issues, I think this was discusses before but never documented.

If this gets accepted, I'd also like to offer my help with this (and/or create a sample application for it).

Page URL

https://learn.microsoft.com/en-us/ef/core/testing/choosing-a-testing-strategy

Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/testing/choosing-a-testing-strategy.md

Document Version Independent Id

5bda9745-35bb-81d2-4b57-7fbb8879eb71

Platform Id

2823a329-61bb-76b0-9360-0c54a3dc2ef4

Article author

@roji</issue_description>

Comments on the Issue (you are @copilot in this section)

@roji I agree that these pages should be mentioning testcontainers.

💡 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.

Copilot AI and others added 2 commits November 23, 2025 11:21
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Co-authored-by: roji <1862641+roji@users.noreply.github.com>
Copilot AI changed the title [WIP] Add mention of testcontainers to testing strategy page Add Testcontainers mentions to EF Core testing documentation Nov 23, 2025
Copilot AI requested a review from roji November 23, 2025 11:24
Copilot finished work on behalf of roji November 23, 2025 11:24
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.

Add a mention to testcontainers

2 participants