Maintaining @testcontainers | Contributing to OSS | Automating builds, tests and infrastructures | Making devs happy | @ZEISS_Group | Docker Captain

Joined July 2014
8 Photos and videos
Pinned Tweet
Super excited to join the @Docker Captains Program 🎉 Honored to see my work on Testcontainers for .NET (and soon Docker.DotNet) being recognized. Looking forward to contributing to Docker, .NET, and open-source projects with the amazing folks in the program :tc-love:
2
4
15
1,087
Andre Hofmeister retweeted
No - you aren't doing "integration" testing with an in-memory database. At best it's a glorified unit test... I've seen many examples using the EF Core in-memory provider. This isn't an integration test because there's no real database. Worse, this will fail to catch any LINQ or SQL bugs. Here's a better approach: - Use a real database or Docker container - Connect to this database from your tests - Write proper integration tests that have value If you want to use Docker, I recommend exploring Testcontainers. It lets you define throwaway containers in your tests. What tools or methods do you use for integration testing?
5
17
94
4,671
Been leaning hard on Docker Sandboxes lately to keep secrets out of my agent environment, no tokens sitting in env vars waiting to leak 🔒. Put together a spec.yaml workflow that auths against GHE Copilot a private NuGet feed: github.com/HofmeisterAn/dock….
1
3
200
Testcontainers for .NET 4.12.0 is out 🐳 This release ships a major version bump of our forked Docker.DotNet client, bringing a bunch of improvements made over the past months. Fingers crossed it's all smooth sailing for you 🤞: github.com/testcontainers/te….
3
30
1,675
Along with many stability and performance improvements, the new Docker.DotNet version is now AOT-compatible. Check out the release notes from version 4.0.0 onward. They include many great updates: github.com/testcontainers/Do….
2
4
176
Andre Hofmeister retweeted
Testcontainers is hands down the best way to write integration tests in .NET. You can run your external services in Docker containers, which you can access from your tests. Here's how to spin up SQL Server in a container. 👇
7
10
104
6,899
I've also got an update ready for the Docker.DotNet client, which in the next release will bring performance improvements, better resource usage, lots of fixes, and support for .NET's native HTTP handler 💪.
14
Andre Hofmeister retweeted
Here's what my integration tests look like with Testcontainers. 👇 Each test creates a command/query and sends it using MediatR. Under the hood, there's an actual database running in a Docker container. This is powered by Testconatiners.
2
10
55
2,473
I've put together a few slides for future Testcontainers for .NET talks. If you're interested in discussing Testcontainers, let me know. Feedback on the slides is welcome as well: andrehofmeister.com/en/testc….

2
2
133
I never expected such an amazing journey when I started working on Testcontainers for .NET years ago. I've met many great people and learned a lot. I'm truly grateful for all of it. I never imagined the packages would one day pass 150M downloads!
3
1
6
183
Docker.DotNet is now compatible with the latest Docker Engine v29 (github.com/testcontainers/Do…). Please note that backward compatibility with earlier API versions is limited due to the project's current structure.
1
2
58
I will address this limitation in upcoming releases.
13
A new Testcontainers for .NET release is available. This release supports .NET 10 and ensures compatibility with Docker Engine v29: github.com/testcontainers/te…. I'm working on updating Docker.DotNet for full v29 support, so expect a new version soon /cc @Docker.
1
2
2
211
Check out the new available modules like Playwright, Grafana, or my favorite this release, Toxiproxy. It's a really interesting tool for pushing testing further: dotnet.testcontainers.org/mo….

1
29
Thanks again to everyone who contributed :tc-love:
18
Heads up, .NET devs: If your client-side Blazor WASM app fails (in Rider) with 'Failed to establish connection to debugger agent' but works in a regular browser, check your debug type, mine was accidentally set to embedded.
1
35
To specify the Docker Engine API in Docker.DotNet, pass the version to the CreateClient(...) factory method:
22